Next.js 16.2 server actions resolve before refreshed data renders — and a clean fix for the stale-flash bug

SeanOliver · x · 2026-10-23

SeanOliver follows up on the Next.js 16.2 timing quirk with a clean fix: keep the saved values on screen until the rows prop actually changes. The overlay remembers which rows array it was saved against, so the first refresh switches it off automatically with no cleanup code. Combined with the mechanism from his earlier post (the action promise resolves first, and the post-await setState is an urgent update that commits before the transition-applied router state), this forms a reusable pattern for avoiding stale-value flashes after server actions.

Related event: Next.js 16.2 Timing Bug Causes Stale Value Flash After Server Actions(3 posts)→

Original post →

More from coding & agent

coding & agent channel →