Next.js
3 min
Infinite scroll that doesn't break the back button
Most infinite scroll implementations lose your place the moment you open a post and come back. Here's the fix, and why it needs both a cursor and a cache.
Read
Loading posts.
Writing · 4 posts
Mostly frontend architecture, performance and the parts of accessibility that keep coming up. Long enough to be useful, short enough to finish.
4 results tagged Next.js
Most infinite scroll implementations lose your place the moment you open a post and come back. Here's the fix, and why it needs both a cursor and a cache.
After a year of App Router work, the biggest shift wasn't the rendering model. It was deleting most of my client state.
No big bang, no parallel codebase. Route-by-route, with both stacks live at the same time.
The white flash on load is a hydration problem, not a CSS problem — and there's exactly one place it can be fixed.
Showing 4 of 4 posts.
4 posts · that’s all of them