mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: prevent repeated redirect when switching from grid to sidebar view
The default-view redirect in HomePage fired on every mount, not just the initial page load. A module-level flag now gates the redirect so it only applies once per session, allowing users to switch to sidebar view when grid is the default. Closes #128
This commit is contained in:
@@ -108,6 +108,7 @@ export default defineConfig({
|
||||
sharp: path.join(apiNodeModules, "sharp"),
|
||||
react: path.join(webNodeModules, "react"),
|
||||
"react-dom": path.join(webNodeModules, "react-dom"),
|
||||
"react-router-dom": path.join(webNodeModules, "react-router-dom"),
|
||||
zustand: path.join(webNodeModules, "zustand"),
|
||||
"posthog-js": path.join(webNodeModules, "posthog-js"),
|
||||
"@sentry/react": path.join(webNodeModules, "@sentry/react"),
|
||||
|
||||
Reference in New Issue
Block a user