MCPcopy Create free account
hub / github.com/TanStack/query / resumePausedMutations

Method resumePausedMutations

packages/query-core/src/queryClient.ts:780–785  ·  view source on GitHub ↗

* Resumes mutations that were paused because there was no network connection. Does nothing * (resolving immediately) if the client is currently offline. * * @example * ```ts * import { QueryClient } from '@tanstack/query-core' * * const queryClient = new QueryClient() * await

()

Source from the content-addressed store, hash-verified

778 * ```
779 */
780 resumePausedMutations(): Promise<unknown> {
781 if (onlineManager.isOnline()) {
782 return this.#mutationCache.resumePausedMutations()
783 }
784 return Promise.resolve()
785 }
786
787 /**
788 * Returns the query cache this client is connected to.

Callers 9

mountMethod · 0.95
mutation.test.tsxFile · 0.45
hydration.test.tsxFile · 0.45
AppFunction · 0.45
AppFunction · 0.45

Calls 1

isOnlineMethod · 0.80

Tested by

no test coverage detected