feat: implement database and table explorer sidebar with persistent app state management
This commit is contained in:
@@ -43,11 +43,14 @@ export const useAppStore = create<AppState>()(
|
||||
{
|
||||
name: 'mariavel-storage',
|
||||
storage: createJSONStorage(() => localStorage),
|
||||
// Only persist connection and connected status
|
||||
// Persist crucial session state
|
||||
partialize: (state) => ({
|
||||
connection: state.connection,
|
||||
connected: state.connected,
|
||||
darkMode: state.darkMode
|
||||
darkMode: state.darkMode,
|
||||
activeDatabase: state.activeDatabase,
|
||||
activeTable: state.activeTable,
|
||||
activeTab: state.activeTab
|
||||
}),
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user