Skip to content

Commit

Permalink
fix: use sync flush for internal reactor
Browse files Browse the repository at this point in the history
Without using sync flush method, the promise does not update instantly
on reactive values changes, something that you absolutely expect
computed references to do.
  • Loading branch information
brawaru committed Dec 23, 2022
1 parent ed072c5 commit 7cc8da4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ export function asyncComputed<R, S = any>(
},
{
immediate: true,
flush: 'sync',
},
)

Expand Down

0 comments on commit 7cc8da4

Please sign in to comment.