split sidebars + optimize generated files loading

This commit is contained in:
Shahed Nasser
2025-03-10 10:32:45 +02:00
parent 87b041800a
commit 8b1ee3705e
17 changed files with 26105 additions and 25913 deletions
@@ -536,6 +536,12 @@ export const SidebarProvider = ({
)
}, [isBrowser, desktopSidebarOpen])
useEffect(() => {
if (initialSidebars[0].sidebar_id !== sidebars[0].sidebar_id) {
resetItems()
}
}, [initialSidebars])
const updatePersistedCategoryState = (title: string, opened: boolean) => {
const storageData = JSON.parse(
localStorage.getItem(categoriesStorageKey) || "{}"