feat: implement database and table explorer sidebar with persistent app state management

This commit is contained in:
Ümit Tunç
2026-04-24 08:14:14 +03:00
parent cd34cc6412
commit d0d0f193a1
2 changed files with 32 additions and 17 deletions
+5 -2
View File
@@ -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
}),
}
)