@tanstack/react-query 4.24.2 → 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.
@@ -1721,8 +1721,14 @@
1721
1721
  }
1722
1722
 
1723
1723
  resumePausedMutations() {
1724
- const pausedMutations = this.mutations.filter(x => x.state.isPaused);
1725
- return notifyManager.batch(() => pausedMutations.reduce((promise, mutation) => promise.then(() => mutation.continue().catch(noop$1)), Promise.resolve()));
1724
+ if (!this.resuming) {
1725
+ const pausedMutations = this.mutations.filter(x => x.state.isPaused);
1726
+ this.resuming = notifyManager.batch(() => pausedMutations.reduce((promise, mutation) => promise.then(() => mutation.continue().catch(noop$1)), Promise.resolve())).then(() => {
1727
+ this.resuming = undefined;
1728
+ });
1729
+ }
1730
+
1731
+ return this.resuming;
1726
1732
  }
1727
1733
 
1728
1734
  }