diff --git a/packages/core/useRefHistory/index.md b/packages/core/useRefHistory/index.md index 091b4632423..4ba5376fe65 100644 --- a/packages/core/useRefHistory/index.md +++ b/packages/core/useRefHistory/index.md @@ -110,7 +110,7 @@ refHistory.clear() // explicitly clear all the history ### History Flush Timing -From [Vue's documentation](https://v3.vuejs.org/guide/reactivity-computed-watchers.html#effect-flush-timing): Vue's reactivity system buffers invalidated effects and flush them asynchronously to avoid unnecessary duplicate invocation when there are many state mutations happening in the same "tick". +From [Vue's documentation](https://vuejs.org/guide/essentials/watchers.html#callback-flush-timing): Vue's reactivity system buffers invalidated effects and flush them asynchronously to avoid unnecessary duplicate invocation when there are many state mutations happening in the same "tick". In the same way as `watch`, you can modify the flush timing using the `flush` option. diff --git a/packages/guide/config.md b/packages/guide/config.md index f20c2ba14dc..7cad6d51a6f 100644 --- a/packages/guide/config.md +++ b/packages/guide/config.md @@ -36,7 +36,7 @@ motionControl.resume() ### Reactive Timing -VueUse's functions follow Vue's reactivity system defaults for [flush timing](https://v3.vuejs.org/guide/reactivity-computed-watchers.html#effect-flush-timing) where possible. +VueUse's functions follow Vue's reactivity system defaults for [flush timing](https://vuejs.org/guide/essentials/watchers.html#callback-flush-timing) where possible. For `watch`-like composables (e.g. `pausableWatch`, `whenever`, `useStorage`, `useRefHistory`) the default is `{ flush: 'pre' }`. Which means they will buffer invalidated effects and flush them asynchronously. This avoids unnecessary duplicate invocation when there are multiple state mutations happening in the same "tick". diff --git a/packages/shared/syncRefs/index.md b/packages/shared/syncRefs/index.md index 7bf2e6158b6..92b135ab856 100644 --- a/packages/shared/syncRefs/index.md +++ b/packages/shared/syncRefs/index.md @@ -51,7 +51,7 @@ export interface SyncRefOptions { } ``` -When setting `{ flush: 'pre' }`, the target reference will be updated at [the end of the current "tick"](https://v3.vuejs.org/guide/reactivity-computed-watchers.html#effect-flush-timing) before rendering starts. +When setting `{ flush: 'pre' }`, the target reference will be updated at [the end of the current "tick"](https://vuejs.org/guide/essentials/watchers.html#callback-flush-timing) before rendering starts. ```ts import { syncRefs } from '@vueuse/core'