Skip to content

Page request fired twice when using bundleData #986

Description

@salehhamadeh

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:

  1. Run react-server-test-pages
  2. Go to http://localhost:3000/navigation/data-bundle-cache
  3. Click Go. This has bundleData=true
  4. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions