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

Method resumePausedMutations

packages/query-core/src/queryClient.ts:847–852  ·  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. * @returns A promise that resolves once the resumed mutations have settled. * @example * ```ts * import { QueryClient } from '@tanst

()

Source from the content-addressed store, hash-verified

845 * ```
846 */
847 resumePausedMutations(): Promise<unknown> {
848 if (onlineManager.isOnline()) {
849 return this.#mutationCache.resumePausedMutations()
850 }
851 return Promise.resolve()
852 }
853
854 /**
855 * Returns the query cache this client is connected to.

Callers 15

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

Calls 1

isOnlineMethod · 0.80

Tested by

no test coverage detected