Skip to content

Commit

Permalink
fix: restore the updating status
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleSound committed Jan 7, 2024
1 parent 5d65a83 commit a2c9fbc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/runtime-vapor/src/renderWatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,16 @@ function wrapEffectCallback(callback: (...args: any[]) => any): Function {
)

if (isFirstEffect) {
if (dirs) {
queuePostRenderEffect(() => {
instance.isUpdating = false
queuePostRenderEffect(() => {
instance.isUpdating = false
if (dirs) {
invokeDirectiveHook(instance, 'updated')
})
}
// updated hook
if (u) {
queuePostRenderEffect(u)
}
}
// updated hook
if (u) {
queuePostRenderEffect(u)
}
})
}
} else {
// is not mounted
Expand Down

0 comments on commit a2c9fbc

Please sign in to comment.