Skip to content

Commit 57642fa

Browse files
committed
fix(ssr): invoke directive created hook during hydration
1 parent 11804fe commit 57642fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/runtime-core/src/hydration.ts

+3
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ export function createHydrationFunctions(
244244
const { props, patchFlag, shapeFlag, dirs } = vnode
245245
// skip props & children if this is hoisted static nodes
246246
if (patchFlag !== PatchFlags.HOISTED) {
247+
if (dirs) {
248+
invokeDirectiveHook(vnode, null, parentComponent, 'created')
249+
}
247250
// props
248251
if (props) {
249252
if (

0 commit comments

Comments
 (0)