chore: comments

This commit is contained in:
Evan You 2020-08-19 18:02:17 -04:00
parent 1eb6067a85
commit cfa7636bbe

View File

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