avatar
{🧪} +paoloricciuti.svelte @paolo.ricciuti.me

I was thinking: since it's just a checkbox...you could store it in a cookie rather than local storage. This way you could even SSR the value and fix the hydration problem (and you could potentially also progressive enhance that setting the cookie with JS It available and on the server if not)

sep 7, 2025, 4:20 pm • 0 0

Replies

avatar
Antoine @antleth.fr

You're right, but I've already implemented everything, I store a bunch of other things of that kind in localStorage, the hydration difference isn't really noticeable, and I find it off to have this preference bundled in every request I think it's fine like that, might reconsider later, thanks!

sep 7, 2025, 4:49 pm • 0 0 • view