MCPcopy Create free account
hub / github.com/massCodeIO/massCode / saveStateSnapshot

Function saveStateSnapshot

src/renderer/composables/useApp.ts:57–67  ·  view source on GitHub ↗
(action: StateAction)

Source from the content-addressed store, hash-verified

55}
56
57function saveStateSnapshot(action: StateAction): void {
58 stateSnapshots[action] = {
59 snippetId: state.snippetId,
60 folderId: state.folderId,
61 tagId: state.tagId,
62 snippetContentIndex: state.snippetContentIndex,
63 libraryFilter: state.libraryFilter,
64 codeLayoutMode: codeLayoutMode.value,
65 isSidebarHidden: isSidebarHidden.value,
66 }
67}
68
69function restoreStateSnapshot(action: StateAction): void {
70 const snapshot = stateSnapshots[action]

Callers 1

searchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected