Skip to content

feat(runtime-core): hydration internal flag #2016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CyberAP
Copy link
Contributor

@CyberAP CyberAP commented Aug 31, 2020

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

@yyx990803 yyx990803 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
Contributor Author

CyberAP commented Jul 15, 2021

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

KaelWD commented Aug 20, 2021

We use this in vuetify as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. scope: ssr version: minor
Projects
Development

Successfully merging this pull request may close these issues.

Hydration detection
4 participants