You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: migrate filter persistence from localStorage to cookies
Fixes hydration timing issue where sidebar Issues link had stale href.
Changes:
- Add cookie utilities (src/lib/cookies/preferences.ts, client.ts)
- MainLayout reads cookies server-side and passes to Sidebar as props
- Sidebar accepts issuesPath and initialCollapsed as props
- BackToIssuesLink accepts href prop instead of using hook
- use-search-filters sets cookie client-side (synchronous)
- Remove use-issue-link.ts hook (replaced by cookie approach)
Benefits:
- No hydration mismatch (server and client render same values)
- No race conditions (client-side cookie set is synchronous)
- Sidebar collapsed state also migrated to cookies
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments