File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -507,7 +507,7 @@ export function resetTracking(): void {
507
507
* The cleanup function is called right before the next effect run, or when the
508
508
* effect is stopped.
509
509
*
510
- * Throws a warning iff there is no currenct active effect. The warning can be
510
+ * Throws a warning if there is no current active effect. The warning can be
511
511
* suppressed by passing `true` to the second argument.
512
512
*
513
513
* @param fn - the cleanup function to be registered
Original file line number Diff line number Diff line change @@ -95,6 +95,10 @@ export function getCurrentWatcher(): ReactiveEffect<any> | undefined {
95
95
* associated effect re-runs.
96
96
*
97
97
* @param cleanupFn - The callback function to attach to the effect's cleanup.
98
+ * @param failSilently - if `true`, will not throw warning when called without
99
+ * an active effect.
100
+ * @param owner - The effect that this cleanup function should be attached to.
101
+ * By default, the current active effect.
98
102
*/
99
103
export function onWatcherCleanup (
100
104
cleanupFn : ( ) => void ,
You can’t perform that action at this time.
0 commit comments