-
Notifications
You must be signed in to change notification settings - Fork 27.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
router.push() does not get the latest ISR on-demand revalidated page #40927
Comments
Closing as a duplicate of #39186 (comment) |
Ah I see, the reproduction fails to return a response in the revalidate API route so it timed out and never revalidated properly so seemed like a duplicate. After fixing the reproduction I am able to see the issue the described. |
Fixes: #40927 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md`
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
Safari version 16.0 (17614.1.25.9.10, 17614)
How are you deploying your application? (if relevant)
next start or Vercel
Describe the Bug
After ISR on-demand revalidation and waiting to the page to be regenerated,
router.push()
doesn't show the regenerated page wherenext/link
does. It happens when you push or link from the page to itself.Expected Behavior
After revalidation,
router.push()
should show the new content.Link to reproduction
https://codesandbox.io/s/ancient-dew-d28bz0
To Reproduce
The CodeSandbox above uses
next dev
. I'm referring tonext start
or deployment on Vercel.index.js page has getStaticProps that will return the time of generation and show it on the page
The expected behaviour is to see a new time whenever push is clicked after revalidate
The text was updated successfully, but these errors were encountered: