We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d013e7 commit 43f1870Copy full SHA for 43f1870
.changeset/kind-meals-mate.md
@@ -0,0 +1,5 @@
1
+---
2
+"mobx-tanstack-query": patch
3
4
+
5
+fixed mixing static query key pass for queries
src/inifinite-query.ts
@@ -367,6 +367,12 @@ export class InfiniteQuery<
367
368
const isQueryKeyDynamic = typeof queryKeyOrDynamicQueryKey === 'function';
369
370
+ if (!isQueryKeyDynamic) {
371
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
372
+ // @ts-expect-error
373
+ restOptions.queryKey = queryKeyOrDynamicQueryKey;
374
+ }
375
376
this.options = this.queryClient.defaultQueryOptions(
377
restOptions as any,
378
) as InfiniteQueryOptions<
0 commit comments