Skip to content

Commit 3ca4c64

Browse files
fix(vue-query): update observer's options to latest value during suspense (#6134)
1 parent 8cb487b commit 3ca4c64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/vue-query/src/useBaseQuery.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ export function useBaseQuery<
151151
}
152152
const run = () => {
153153
if (defaultedOptions.value.enabled !== false) {
154+
// fix #6133
155+
observer.setOptions(defaultedOptions.value)
154156
const optimisticResult = observer.getOptimisticResult(
155157
defaultedOptions.value,
156158
)

0 commit comments

Comments
 (0)