Remix.run Logo
mejutoco 4 days ago

You could work around that if needed with a unique id per tab (I was curious myself)

https://stackoverflow.com/questions/11896160/any-way-to-iden...

layer8 4 days ago | parent [-]

Yes, but how do you garbage-collect the stored per-tab state from the local storage? Note that it’s not just per tab, but per history entry of the tab. (When the user goes back, they want the respective state to be restored, and again when going forward in reverse.) Furthermore, with browser features like “reopen closed tab”. Better let the browser manage the state implicitly by managing the URLs.

MattDaEskimo 4 days ago | parent [-]

Scroll position is _kind of_ fine. Typically I can link the ID in the URL as "state".

I was referring to mostly everything else