next.js
4f56a331 - client router cache should still be cleared if server action revalidates + redirects (#70715)

Commit
1 year ago
client router cache should still be cleared if server action revalidates + redirects (#70715) If a server action redirects, we reject the promise eagerly with a redirect error, but that means we skip the handling that clears the client router cache in case the response was revalidated. This keeps the existing handling to seed the prefetch cache & reject the promise but ensures we've had a chance to apply the flight data to the router state. Fixes #70483 Closes NDX-357
Author
Parents
Loading