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,
* e.g. Array.prototype.push actually performs reads as well (#1740) which
* can lead to confusing infinite loops.
* The allowed cases are component render functions and watch callbacks.
* Render functions may update child component props, which in turn trigger
* flush: "pre" watch callbacks that mutates state that the parent relies on
* (#1801). Watch callbacks doesn't track its dependencies so if it triggers
* itself again, it's likely intentional and it is the user's responsibility
* to perform recursive state mutation that eventually stabilizes (#1727).
* The allowed cases are component update functions and watch callbacks.
* Component update functions may update child component props, which in turn
* trigger flush: "pre" watch callbacks that mutates state that the parent
* relies on (#1801). Watch callbacks doesn't track its dependencies so if it
* triggers itself again, it's likely intentional and it is the user's
* responsibility to perform recursive state mutation that eventually
* stabilizes (#1727).
*/
allowRecurse?: boolean
}