Hey everyone, I'm just starting with Astro.
I'm wondering what's the best way to load initial data that can be shared across components like an user object.
Currently, I'm using nanostores and trying to load the initial state in the Layout.astro but the value is flickering and always falls back to the initial state of the atom() (state.set() isn't persisted on hydration it seems).
I also tried it with the @nanostores/persistent plugin but it has the same outcome.
I basically just want to load the user from a cookie (from Layout.astro) and then pass the loaded object as nanostore atom to other components.