Skip to content

Commit cfa7636

Browse files
committed
chore: comments
1 parent 1eb6067 commit cfa7636

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/runtime-core/src/scheduler.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ export interface SchedulerJob {
1212
* By default, a job cannot trigger itself because some built-in method calls,
1313
* e.g. Array.prototype.push actually performs reads as well (#1740) which
1414
* can lead to confusing infinite loops.
15-
* The allowed cases are component render functions and watch callbacks.
16-
* Render functions may update child component props, which in turn trigger
17-
* flush: "pre" watch callbacks that mutates state that the parent relies on
18-
* (#1801). Watch callbacks doesn't track its dependencies so if it triggers
19-
* itself again, it's likely intentional and it is the user's responsibility
20-
* to perform recursive state mutation that eventually stabilizes (#1727).
15+
* The allowed cases are component update functions and watch callbacks.
16+
* Component update functions may update child component props, which in turn
17+
* trigger flush: "pre" watch callbacks that mutates state that the parent
18+
* relies on (#1801). Watch callbacks doesn't track its dependencies so if it
19+
* triggers itself again, it's likely intentional and it is the user's
20+
* responsibility to perform recursive state mutation that eventually
21+
* stabilizes (#1727).
2122
*/
2223
allowRecurse?: boolean
2324
}

0 commit comments

Comments
 (0)