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

Method saveState

src/utils/DOMReconciler.ts:293–296  ·  view source on GitHub ↗

* Save UI state for a specific element

(key: string, element: HTMLElement)

Source from the content-addressed store, hash-verified

291 * Save UI state for a specific element
292 */
293 saveState(key: string, element: HTMLElement): void {
294 const reconciler = new DOMReconciler();
295 this.stateMap.set(key, reconciler.preserveState(element));
296 }
297
298 /**
299 * Restore UI state for a specific element

Callers

nothing calls this directly

Calls 2

preserveStateMethod · 0.95
setMethod · 0.65

Tested by

no test coverage detected