]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: comments
authorEvan You <yyx990803@gmail.com>
Wed, 19 Aug 2020 22:02:17 +0000 (18:02 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 19 Aug 2020 22:02:17 +0000 (18:02 -0400)
packages/runtime-core/src/scheduler.ts

index db8051b207fc01aaadfe7df03e480adcd0eefbaa..9120c3bf174f2205a54e2fd5459b5de2b9a661ba 100644 (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
 }