Scrum4Me/components/backlog
Janpeter Visser 868a53c2ed
fix(M13): hydration mismatch on backlog list filter chips (#19)
useState initializers read localStorage synchronously, which produced
a different render on client (with persisted filterStatus='blocked')
than on server (which has no localStorage and rendered 'all'). The
chip-buttons that surface active filters caused a structural DOM
mismatch next to the Popover trigger, raising a hydration error.

Move the localStorage read into a post-mount useEffect, defaulting
state to the SSR-compatible 'all'/'priority' on first render. Add a
prefsLoaded flag so persist effects skip the initial render and
don't overwrite saved values with defaults.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 20:23:40 +02:00
..
backlog-card.tsx feat(ST-507): show code badges on cards, lists and dialogs across the app 2026-04-26 20:36:59 +02:00
pbi-dialog.tsx M12 / ST-1109: PBI krijgt een status (Ready / Blocked / Done) (#16) 2026-04-29 17:52:34 +02:00
pbi-list.tsx fix(M13): hydration mismatch on backlog list filter chips (#19) 2026-04-29 20:23:40 +02:00
story-dialog.tsx M12 / ST-1110: Demo gebruiker read-only (#17) 2026-04-29 18:44:14 +02:00
story-panel.tsx M12 / ST-1110: Demo gebruiker read-only (#17) 2026-04-29 18:44:14 +02:00