Skip to content

Commit

Permalink
fix: added isCustomElement check for patching in production
Browse files Browse the repository at this point in the history
  • Loading branch information
steveworkman committed Jan 13, 2023
1 parent 6584906 commit 95d92b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/runtime-core/src/hydration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,12 @@ export function createHydrationFunctions(
)
// skip props & children if this is hoisted static nodes
// #5405 in dev, always hydrate children for HMR
if (__DEV__ || forcePatchValue || patchFlag !== PatchFlags.HOISTED) {
if (
__DEV__ ||
forcePatchValue ||
patchFlag !== PatchFlags.HOISTED ||
isCustomElement
) {
if (dirs) {
invokeDirectiveHook(vnode, null, parentComponent, 'created')
}
Expand Down

0 comments on commit 95d92b3

Please sign in to comment.