Skip to content

Commit a3a20af

Browse files
committed
chore: clarify isUpdating purpose to prevent recursive updates
1 parent 750e7cd commit a3a20af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/runtime-vapor/src/renderEffect.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ export class RenderEffect extends ReactiveEffect {
5353

5454
this.job = job
5555
this.i = instance
56-
57-
// TODO recurse handling
5856
}
5957

6058
fn(): void {
@@ -67,6 +65,7 @@ export class RenderEffect extends ReactiveEffect {
6765
}
6866
const prev = setCurrentInstance(instance, scope)
6967
if (hasUpdateHooks && instance.isMounted && !instance.isUpdating) {
68+
// avoid recurse update until updateJob flushed
7069
instance.isUpdating = true
7170
instance.bu && invokeArrayFns(instance.bu)
7271
this.render()

0 commit comments

Comments
 (0)