This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Store filter state in cookie #508
Labels
🕹 aspect: interface
Concerns end-users' experience with the software
✨ goal: improvement
Improvement to an existing user-facing feature
🟩 priority: low
Low priority and doesn't need to be rushed
🚦 status: awaiting triage
Has not been triaged & therefore, not ready for work
Problem
Currently the filter "open" state is stored in local storage. This means that for SSR requests, we don't know whether to render the filters open or closed, so we always render them closed. For SSR pages, this means that if the filters are set to open in local storage, there's a brief period of time when the page first loads where the filters will be closed and after the page starts loading, will completely reflow to open the filters.
Description
There might be a more elegant way to do this but I was thinking we could store this state in a cookie instead of local storage, so that when the page is being rendered on the server we'd be able to read out the open/closed state there.
Alternatives
I'm not sure of any but there's very well could be a more elegant solution to this problem.
Implementation
The text was updated successfully, but these errors were encountered: