diff --git a/packages/runtime-core/src/hydration.ts b/packages/runtime-core/src/hydration.ts index aa92891d4b2..c2d13a1986d 100644 --- a/packages/runtime-core/src/hydration.ts +++ b/packages/runtime-core/src/hydration.ts @@ -244,6 +244,9 @@ export function createHydrationFunctions( const { props, patchFlag, shapeFlag, dirs } = vnode // skip props & children if this is hoisted static nodes if (patchFlag !== PatchFlags.HOISTED) { + if (dirs) { + invokeDirectiveHook(vnode, null, parentComponent, 'created') + } // props if (props) { if (