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

Method restoreState

src/utils/DOMReconciler.ts:301–307  ·  view source on GitHub ↗

* Restore UI state for a specific element

(key: string, element: HTMLElement)

Source from the content-addressed store, hash-verified

299 * Restore UI state for a specific element
300 */
301 restoreState(key: string, element: HTMLElement): void {
302 const state = this.stateMap.get(key);
303 if (state) {
304 const reconciler = new DOMReconciler();
305 reconciler.restoreState(element, state);
306 }
307 }
308
309 /**
310 * Clear saved state

Callers

nothing calls this directly

Calls 2

restoreStateMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected