Skip to content

Commit a2c9fbc

Browse files
committed
fix: restore the updating status
1 parent 5d65a83 commit a2c9fbc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/runtime-vapor/src/renderWatch.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,16 @@ function wrapEffectCallback(callback: (...args: any[]) => any): Function {
110110
)
111111

112112
if (isFirstEffect) {
113-
if (dirs) {
114-
queuePostRenderEffect(() => {
115-
instance.isUpdating = false
113+
queuePostRenderEffect(() => {
114+
instance.isUpdating = false
115+
if (dirs) {
116116
invokeDirectiveHook(instance, 'updated')
117-
})
118-
}
119-
// updated hook
120-
if (u) {
121-
queuePostRenderEffect(u)
122-
}
117+
}
118+
// updated hook
119+
if (u) {
120+
queuePostRenderEffect(u)
121+
}
122+
})
123123
}
124124
} else {
125125
// is not mounted

0 commit comments

Comments
 (0)