Skip to content

Commit c414bd2

Browse files
committed
docs fix typo in example for watch
1 parent dab4809 commit c414bd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/reactivity-core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ Watches one or more reactive data sources and invokes a callback function when t
515515
Pausing / resuming the watcher: <sup class="vt-badge" data-text="3.5+" />
516516
517517
```js
518-
const { stop, pause, resume } = watchEffect(() => {})
518+
const { stop, pause, resume } = watch(() => {})
519519

520520
// temporarily pause the watcher
521521
pause()

0 commit comments

Comments
 (0)