Skip to content

Commit 573bfb0

Browse files
authored
feat(computedAsync)!: default to flush: sync (#4752)
1 parent a2e2ced commit 573bfb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/computedAsync/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface AsyncComputedOptions<Lazy = boolean> {
4242
* Possible values: `pre`, `post`, `sync`
4343
*
4444
* It works in the same way as the flush option in watch and watch effect in vue reactivity
45-
* @default 'pre'
45+
* @default 'sync'
4646
*/
4747
flush?: 'pre' | 'post' | 'sync'
4848

@@ -98,7 +98,7 @@ export function computedAsync<T>(
9898

9999
const {
100100
lazy = false,
101-
flush = 'pre',
101+
flush = 'sync',
102102
evaluating = undefined,
103103
shallow = true,
104104
onError = globalThis.reportError ?? noop,

0 commit comments

Comments
 (0)