fix(ssr): invoke directive created hook during hydration
This commit is contained in:
parent
11804fe93f
commit
57642fac8f
@ -244,6 +244,9 @@ export function createHydrationFunctions(
|
|||||||
const { props, patchFlag, shapeFlag, dirs } = vnode
|
const { props, patchFlag, shapeFlag, dirs } = vnode
|
||||||
// skip props & children if this is hoisted static nodes
|
// skip props & children if this is hoisted static nodes
|
||||||
if (patchFlag !== PatchFlags.HOISTED) {
|
if (patchFlag !== PatchFlags.HOISTED) {
|
||||||
|
if (dirs) {
|
||||||
|
invokeDirectiveHook(vnode, null, parentComponent, 'created')
|
||||||
|
}
|
||||||
// props
|
// props
|
||||||
if (props) {
|
if (props) {
|
||||||
if (
|
if (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user