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

Function queueUpdate

packages/lit-query/src/controllers/BaseController.ts:210–222  ·  view source on GitHub ↗

* Requests a host update in a microtask, batching multiple calls into one.

()

Source from the content-addressed store, hash-verified

208 * Requests a host update in a microtask, batching multiple calls into one.
209 */
210 protected queueUpdate(): void {
211 if (this.updateQueued) {
212 return
213 }
214
215 this.updateQueued = true
216 queueMicrotask(() => {
217 this.updateQueued = false
218 if (!this.destroyed) {
219 this.host.requestUpdate()
220 }
221 })
222 }
223
224 private queueQueryClientChanged(): void {
225 if (this.clientChangeQueued) {

Callers

nothing calls this directly

Calls 1

requestUpdateMethod · 0.45

Tested by

no test coverage detected