Figured out some bugs today. I now have scroll restoration working in TanStack.com's Router and Start for history restore & scrollToTop * window & element * SPA & SSR * hydration mismatch recovery * post-render dynamic content That's a lot of permutations lol
Post
It uses sessionStorage with history state keys, yes. I think SPAs traditionally didn’t care as much because apps had fewer expectations around saving your place. Less long form content maybe? Who knows. We did without a lot of things for a long time.
0 reposts2 likes