Page request fired twice when using bundleData
salehhamadeh opened this issue · 0 comments
salehhamadeh commented
When using the bundleData prop with react-server's Link, any subsequent requests to that page in the same history stack will have an unnecessary XHR page request.
Repro steps:
- Run react-server-test-pages
- Go to http://localhost:3000/navigation/data-bundle-cache
- Click Go. This has
bundleData=true
- Refresh the page
Expected: When you refresh the page, there should be no XHR like this http://localhost:3000/navigation/data-bundle-cache?page=7&_react_server_data_bundle=1
Actual: The unnecessary XHR is fired.
This issue does not happen if you open a new tab and go to the URL.