[ ] π Documentation (updates to the documentation, readme, or JSdoc annotations)
[ ] π Bug fix (a non-breaking change that fixes an issue)
[X] π Enhancement (improving an existing functionality like performance)
[ ] β¨ New feature (a non-breaking change that adds functionality)
[ ] π§Ή Chore (updates to the build process or auxiliary tools and libraries)
[ ] β οΈ Breaking change (fix or feature that would cause existing functionality to change)
π Description
This PR changes the way the color choice is stored from localStorage to Cookies.
This is so that SSR also knows the color choice of the user.
Currently, SSR always sends the default color so you get kinda flash banged if you have a different setting.
I know that the workaround with the Cookie expiration date isn't the cleanest. But I believe it would be worth it for the improved UX. If you disagree or have a better idea of how to fix the problem let me know.
π Linked issue
β Type of change
π Description
This PR changes the way the color choice is stored from
localStorage
toCookies
. This is so that SSR also knows the color choice of the user. Currently, SSR always sends the default color so you get kinda flash banged if you have a different setting.I know that the workaround with the Cookie expiration date isn't the cleanest. But I believe it would be worth it for the improved UX. If you disagree or have a better idea of how to fix the problem let me know.
π Checklist