-
-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
Description
When a user dismisses a banner and then reloads the page, the banner briefly flashes visible before hiding itself. This affects both regular banners and campaign banners.
2026-02-21.20-53-24.mp4
Root cause
The dismissed state is stored in localStorage, but reading it happens too late:
- Server renders HTML with banner visible (no localStorage access on server)
- Browser receives HTML and paints it → banner is visible
- JS bundle loads and Svelte hydrates
onMountfires → reads localStorage → hides banner
The flash occurs in steps 2–3, before any JS runs.
Steps to reproduce
- Visit the site
- Dismiss a banner
- Reload the page
- Observe the banner flashing briefly before disappearing
Fix
PR #663
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels