Skip to content

Commit 3930efc

Browse files
committed
maybe fix for vue reactivity cbs
1 parent 62fd9cd commit 3930efc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/vue-query/src/useQueries.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ export function useQueries<
215215
defaultedQueries.value,
216216
options as QueriesObserverOptions<TCombinedResult>,
217217
)
218-
state.value = observer.getCurrentResult()
218+
const [, getCombinedResultPersisted] = observer.getOptimisticResult(
219+
defaultedQueries.value,
220+
)
221+
state.value = getCombinedResultPersisted()
219222
},
220223
{ deep: true },
221224
)

0 commit comments

Comments
 (0)