MCPcopy Create free account
hub / github.com/experdot/pointer / persist

Function persist

src/renderer/src/stores/layoutStore.ts:43–50  ·  view source on GitHub ↗
(state: LayoutState)

Source from the content-addressed store, hash-verified

41}
42
43const persist = (state: LayoutState): void => {
44 const scope = getCurrentAccountScope()
45 getLayoutQueue(scope).enqueue('layout', {
46 sidebarWidth: state.sidebarWidth,
47 sidebarVisible: state.sidebarVisible,
48 activePanel: state.activePanel
49 })
50}
51
52export const useLayoutStore = create<LayoutStore>((set, get) => ({
53 ...initialState,

Callers 1

layoutStore.tsFile · 0.70

Calls 2

getCurrentAccountScopeFunction · 0.90
getLayoutQueueFunction · 0.90

Tested by

no test coverage detected