MCPcopy Index your code
hub / github.com/TanStack/db / resetInstance

Method resetInstance

packages/db/src/collection/cleanup-queue.ts:97–104  ·  view source on GitHub ↗

* Resets the singleton instance for tests.

()

Source from the content-addressed store, hash-verified

95 * Resets the singleton instance for tests.
96 */
97 public static resetInstance(): void {
98 if (CleanupQueue.instance) {
99 if (CleanupQueue.instance.timeoutId !== null) {
100 clearTimeout(CleanupQueue.instance.timeoutId)
101 }
102 CleanupQueue.instance = null
103 }
104 }
105}

Callers 3

includes.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected