From 95a6536f5277d01ff7dd88e68eefc281a5eda472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Fern=C3=A1ndez?= Date: Wed, 14 May 2025 07:25:46 +0000 Subject: [PATCH] refactor(computedAsync)!: default to `flush: sync` --- packages/core/computedAsync/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/computedAsync/index.ts b/packages/core/computedAsync/index.ts index 0c836c2c5f2..782abf2f28c 100644 --- a/packages/core/computedAsync/index.ts +++ b/packages/core/computedAsync/index.ts @@ -42,7 +42,7 @@ export interface AsyncComputedOptions { * Possible values: `pre`, `post`, `sync` * * It works in the same way as the flush option in watch and watch effect in vue reactivity - * @default 'pre' + * @default 'sync' */ flush?: 'pre' | 'post' | 'sync' @@ -98,7 +98,7 @@ export function computedAsync( const { lazy = false, - flush = 'pre', + flush = 'sync', evaluating = undefined, shallow = true, onError = noop,