From 0b68d7f6f54cd0c3a28c8123f027ed552ed95ed0 Mon Sep 17 00:00:00 2001 From: Godpu Date: Sat, 24 Oct 2020 15:47:46 +0800 Subject: [PATCH] Update reactivity-computed-watchers.md --- src/guide/reactivity-computed-watchers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/guide/reactivity-computed-watchers.md b/src/guide/reactivity-computed-watchers.md index eec1bc5741..ec4e62cbd7 100644 --- a/src/guide/reactivity-computed-watchers.md +++ b/src/guide/reactivity-computed-watchers.md @@ -144,8 +144,8 @@ The `flush` option also accepts `'sync'`, which forces the effect to always trig The `onTrack` and `onTrigger` options can be used to debug a watcher's behavior. -- `onTrack` will be called when a reactive property or ref is tracked as a dependency -- `onTrigger` will be called when the watcher callback is triggered by the mutation of a dependency +- `onTrack` will be called when a reactive property or ref is tracked as a dependency. +- `onTrigger` will be called when the watcher callback is triggered by the mutation of a dependency. Both callbacks will receive a debugger event which contains information on the dependency in question. It is recommended to place a `debugger` statement in these callbacks to interactively inspect the dependency: