(state: TabsState)
| 113 | } |
| 114 | |
| 115 | const persist = (state: TabsState): void => { |
| 116 | const scope = tryGetCurrentWorkspaceScope() |
| 117 | if (!scope) return |
| 118 | |
| 119 | getTabsQueue(scope).enqueue('tabs', { |
| 120 | tabs: state.tabs, |
| 121 | activeTabId: state.activeTabId, |
| 122 | history: state.history, |
| 123 | historyIndex: state.historyIndex |
| 124 | }) |
| 125 | } |
| 126 | |
| 127 | export const useTabsStore = create<TabsStore>((set, get) => ({ |
| 128 | ...initialState, |
no test coverage detected