MCPcopy
hub / github.com/callumalpass/tasknotes / clearState

Method clearState

src/utils/DOMReconciler.ts:312–318  ·  view source on GitHub ↗

* Clear saved state

(key?: string)

Source from the content-addressed store, hash-verified

310 * Clear saved state
311 */
312 clearState(key?: string): void {
313 if (key) {
314 this.stateMap.delete(key);
315 } else {
316 this.stateMap.clear();
317 }
318 }
319
320 /**
321 * Clean up all resources

Callers

nothing calls this directly

Calls 2

deleteMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected