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

Method resumePausedMutations

packages/query-core/src/queryClient.ts:773–778  ·  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

771 * ```
772 */
773 resumePausedMutations(): Promise<unknown> {
774 if (onlineManager.isOnline()) {
775 return this.#mutationCache.resumePausedMutations()
776 }
777 return Promise.resolve()
778 }
779
780 /**
781 * 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