@tanstack/vue-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.
@@ -1697,8 +1697,14 @@
1697
1697
  }
1698
1698
 
1699
1699
  resumePausedMutations() {
1700
- const pausedMutations = this.mutations.filter(x => x.state.isPaused);
1701
- 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;
1702
1708
  }
1703
1709
 
1704
1710
  }