fix(ssr): invoke directive created hook during hydration

This commit is contained in:
Evan You 2020-08-24 17:24:54 -04:00
parent 11804fe93f
commit 57642fac8f

View File

@ -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 (