Skip to content

Conversation

@CyberAP
Copy link
Contributor

@CyberAPCyberAP commented Aug 31, 2020

Adds an internal hydration flag for created, beforeMount and mounted lifecycles, removes after the mounted. Closes#1723

@yyx990803yyx990803 added version: minor 🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. labels Dec 4, 2020
@yyx990803
Copy link
Member

Wondering if this is still relevant as there seems to be no one else raising similar needs. I'm removing this from 3.2 for now since I think we may have better consistency exposing isSSR and isHydrating via global callable methods, as part of 3.3 (which will focus on SSR).

@CyberAP
Copy link
ContributorAuthor

I am strongly relying on hydration detection and forced rehydration mechanism up to this day in Vue 2. The implementation doesn't really matter that much to me, its more important that I can have a reliable way to detect a hydration in Vue 3. Looking forward for Vue 3.3!

@KaelWD
Copy link
Contributor

We use this in vuetify as well.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍰 p2-nice-to-havePriority 2: this is not breaking anything but nice to have it addressed.scope: ssrversion: minor

Projects

Status: Stale

Development

Successfully merging this pull request may close these issues.

Hydration detection

4 participants

@CyberAP@yyx990803@KaelWD@haoqunjiang