#Nub question, how do you guys handle browser data using SSR?

1 messages · Page 1 of 1 (latest)

unborn jungle
#

by the fact that SSR render the page and don't have access to window , how do you guys handle the things in client side? Like local storage, cookies, state/store (like using redux).

young helm
#

Cookies are accessible server side (that’s the whole point of cookies)

#

For the rest you need to access them inside effects

#

You will notice that if you follow Remix patterns you will need less and less client-side only things

#

I haven needed something like Redux, for cookie I use Remix helpers and localStorage I only use it sparingly for keeping form states before submit

unborn jungle
#

The patterns are included in the docs? I have not started with Remix yet.