8000 fix(hmr): avoid hydration for hmr updating by edison1105 · Pull Request #12262 · vuejs/core · GitHub
[go: up one dir, main page]

Skip to content

fix(hmr): avoid hydration for hmr updating #12262

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

Merged
merged 5 commits into from
May 13, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(ssr): avoid hydration for hmr updating
  • Loading branch information
edison1105 committed Oct 25, 2024
commit 2ea00461489014e20e27108100a6421437961319
6 changes: 3 additions & 3 deletions packages/runtime-core/src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1208,12 +1208,12 @@ function baseCreateRenderer(
}
}

// avoid hydration for hmr updating
if (__DEV__ && isHmrUpdating) initialVNode.el = null

// setup() is async. This component relies on async logic to be resolved
// before proceeding
if (__FEATURE_SUSPENSE__ && instance.asyncDep) {
// avoid hydration for hmr updating
if (__DEV__ && isHmrUpdating) initialVNode.el = null

parentSuspense &&
parentSuspense.registerDep(instance, setupRenderEffect, optimized)

Expand Down
0