MCPcopy
hub / github.com/TanStack/query / runNext

Method runNext

packages/query-core/src/mutationCache.ts:177–188  ·  view source on GitHub ↗
(mutation: Mutation<any, any, any, any>)

Source from the content-addressed store, hash-verified

175 }
176
177 runNext(mutation: Mutation<any, any, any, any>): Promise<unknown> {
178 const scope = scopeFor(mutation)
179 if (typeof scope === 'string') {
180 const foundMutation = this.#scopes
181 .get(scope)
182 ?.find((m) => m !== mutation && m.state.isPaused)
183
184 return foundMutation?.continue() ?? Promise.resolve()
185 } else {
186 return Promise.resolve()
187 }
188 }
189
190 clear(): void {
191 notifyManager.batch(() => {

Callers 1

executeMethod · 0.80

Calls 4

scopeForFunction · 0.85
getMethod · 0.80
continueMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected