Skip to content

Commit cd2e6e1

Browse files
committed
fix: get dynamic options queries behaviour
1 parent 264031e commit cd2e6e1

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.changeset/lemon-ears-drop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"mobx-tanstack-query": patch
3+
---
4+
5+
twice call of get dynamic options fn (queries)

src/inifinite-query.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,6 @@ export class InfiniteQuery<
471471
reaction(getAllDynamicOptions, this.update, {
472472
delay: this.config.dynamicOptionsUpdateDelay,
473473
signal: config.abortSignal,
474-
fireImmediately: true,
475474
equals: this.features.dynamicOptionsComparer,
476475
});
477476
}

src/query.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,6 @@ export class Query<
464464
reaction(getAllDynamicOptions, this.update, {
465465
delay: this.features.dynamicOptionsUpdateDelay,
466466
signal: config.abortSignal,
467-
fireImmediately: true,
468467
equals: this.features.dynamicOptionsComparer,
469468
});
470469
}

0 commit comments

Comments
 (0)