You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After submitting a post request that changes the current page's data, the previous prefetch value will still be used and the user will be shown stale data.
Steps to reproduce:
Set a page to be prefetched: "/settings"
Visit "/"
Visit "/settings"
router.post('/settings/update') - this returns data that modifies the settings page data
Visit "/"
Visit "/settings" - here you'll get the data from the prefetch, not the merged props from the post.
The text was updated successfully, but these errors were encountered:
@pedroborges@reinink Any chance this could get released? I'm experiencing quite a lot of issues and I'm not sure if this is solved by #2023 since the tests there only reference deferred props. But I'm also hesitant to report an issue if it's potentially already fixed.
Versions:
@inertiajs/core
version: 2.0.0-beta.1@inertiajs/react
version: 2.0.0-beta.1Describe the problem:
After submitting a post request that changes the current page's data, the previous prefetch value will still be used and the user will be shown stale data.
Steps to reproduce:
Set a page to be prefetched: "/settings"
Visit "/"
Visit "/settings"
router.post('/settings/update') - this returns data that modifies the settings page data
Visit "/"
Visit "/settings" - here you'll get the data from the prefetch, not the merged props from the post.
The text was updated successfully, but these errors were encountered: