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

Function invalidate

packages/angular-query/src/utils/inject-external-store.ts:59–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 const revision = signal(0)
58 const requested = computed(() => outsideZone(binding))
59 const invalidate = () => untracked(() => revision.update((n) => n + 1))
60
61 effect((onCleanup) => {
62 // The previous subscription's cleanup may have destroyed the owner.

Callers 1

injectExternalStoreFunction · 0.85

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected