Skip to content

Unloaded route manifest causes blank page to show with React Router 7 fog of war #13169

Closed
@nagytom

Description

@nagytom

I'm using React Router as a...

framework

Reproduction

https://stackblitz.com/edit/vite-yyddap2q

  1. Refresh page on /
  2. Click on go to /parent/child
  3. Click on go to /
  4. Click on go to /parent
  5. You should see a blank page as the route manifest is not loaded properly, a page refresh is needed

System Info

System:
  OS: macOS 15.3.1
  CPU: (14) arm64 Apple M3 Max
  Memory: 2.96 GB / 36.00 GB
  Shell: 5.2.37 - /opt/homebrew/bin/bash
Binaries:
  Node: 22.13.1 - ~/.nvm/versions/node/v22.13.1/bin/node
  npm: 11.1.0 - ~/.nvm/versions/node/v22.13.1/bin/npm
Browsers:
  Chrome: 133.0.6943.142
  Safari: 18.3
npmPackages:
  @react-router/dev: ^7.2.0 => 7.2.0
  @react-router/node: ^7.2.0 => 7.2.0
  @react-router/serve: ^7.2.0 => 7.2.0
  react-router: ^7.2.0 => 7.2.0
  vite: ^5.4.11 => 5.4.14

Used Package Manager

npm

Expected Behavior

Load the route manifest even if it's not discoverable via Links.

Actual Behavior

A blank page is shown without any error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions