Skip to content

Commit a4800ed

Browse files
committed
Document why watched template refs require theflush: 'post' option to be set
vuejs/docs@efbbe59#diff-89664ba2a61a56095e5fec5ed2bc4fa5be629e0beda5bc25262d76b9cbcbe1eb
1 parent f1a2192 commit a4800ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/reactivity-computed-watchers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Vue のリアクティブシステムは、無効になった変更をバッフ
123123
- count は最初の実行時に同期的に記録されます。
124124
- `count` が変化した時、コンポーネントの**変更前**にコールバック関数が実行されます。
125125

126-
In cases where a watcher effect needs to be re-run **after** component updates, we can pass an additional `options` object with the `flush` option (default is `'pre'`):
126+
In cases where a watcher effect needs to be re-run **after** component updates (i.e. when working with [Template Refs](./composition-api-template-refs.md#watching-template-refs)), we can pass an additional `options` object with the `flush` option (default is `'pre'`):
127127

128128
```js
129129
// コンポーネントが更新された後に発火、更新された DOM にアクセスできる

0 commit comments

Comments
 (0)