@tanstack/vue-query 4.22.4 → 4.24.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -810,6 +810,7 @@
810
810
  this.queryHash = config.queryHash;
811
811
  this.initialState = config.state || getDefaultState$1(this.options);
812
812
  this.state = this.initialState;
813
+ this.scheduleGc();
813
814
  }
814
815
 
815
816
  get meta() {
@@ -1696,8 +1697,14 @@
1696
1697
  }
1697
1698
 
1698
1699
  resumePausedMutations() {
1699
- const pausedMutations = this.mutations.filter(x => x.state.isPaused);
1700
- return notifyManager.batch(() => pausedMutations.reduce((promise, mutation) => promise.then(() => mutation.continue().catch(noop)), Promise.resolve()));
1700
+ if (!this.resuming) {
1701
+ const pausedMutations = this.mutations.filter(x => x.state.isPaused);
1702
+ this.resuming = notifyManager.batch(() => pausedMutations.reduce((promise, mutation) => promise.then(() => mutation.continue().catch(noop)), Promise.resolve())).then(() => {
1703
+ this.resuming = undefined;
1704
+ });
1705
+ }
1706
+
1707
+ return this.resuming;
1701
1708
  }
1702
1709
 
1703
1710
  }