MCPcopy Create free account
hub / github.com/TanStack/hotkeys / resetInstance

Method resetInstance

packages/hotkeys/src/sequence-manager.ts:210–215  ·  view source on GitHub ↗

* Resets the singleton instance. Useful for testing.

()

Source from the content-addressed store, hash-verified

208 if (SequenceManager.#instance) {
209 SequenceManager.#instance.destroy()
210 SequenceManager.#instance = null
211 }
212 }
213
214 #syncRegistrationView(registration: SequenceRegistration): void {
215 this.registrations.setState((prev) =>
216 new Map(prev).set(registration.id, toRegistrationView(registration)),
217 )
218 }

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected