Skip to content

Commit

Permalink
fix(ssr): invoke directive created hook during hydration
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Aug 24, 2020
1 parent 11804fe commit 57642fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/runtime-core/src/hydration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 57642fa

Please sign in to comment.