From 7cc8da4e20ade46a11571c1e3b18d4f6fb93900d Mon Sep 17 00:00:00 2001 From: Sasha Sorokin <10401817+Brawaru@users.noreply.github.com> Date: Fri, 23 Dec 2022 06:36:56 +0100 Subject: [PATCH] fix: use sync flush for internal reactor Without using sync flush method, the promise does not update instantly on reactive values changes, something that you absolutely expect computed references to do. --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index a7ac3f2..7c40e12 100644 --- a/src/index.ts +++ b/src/index.ts @@ -266,6 +266,7 @@ export function asyncComputed( }, { immediate: true, + flush: 'sync', }, )