Which project does this relate to?
Router
Describe the bug
After upgrading to the latest version of router, I've noticed that there's a screen flash (to an empty screen) before the pending component renders.
The issue seems to be from this PR: https://github.com/TanStack/router/pull/4044/files
Reproduction:
https://github.com/Carlwirkus/router-117.1-bug
The red screen should never appear.
Your Example Website or App
https://github.com/Carlwirkus/router-117.1-bug/blob/main/src/main.tsx
Steps to Reproduce the Bug or Issue
- npm install
- npm run dev
- Observe the loading states:
- Blue (index.html fallback)
- Red <-- this is the bug
- Yellow (pending comonent)
- Green (route loaded)
Expected behavior
The red screen should never appear (it's a background colour around the RouteProvider). The route provider must be returning null for a period before it renders the pending component. This works on 1.117.0 and is broken in 1.117.1.
Screenshots or Videos
https://www.loom.com/share/9bda2fdbe0ac4e629d41855b5c66c6ac
Platform
Additional context
No response
Which project does this relate to?
Router
Describe the bug
After upgrading to the latest version of router, I've noticed that there's a screen flash (to an empty screen) before the pending component renders.
The issue seems to be from this PR: https://github.com/TanStack/router/pull/4044/files
Reproduction:
https://github.com/Carlwirkus/router-117.1-bug
The red screen should never appear.
Your Example Website or App
https://github.com/Carlwirkus/router-117.1-bug/blob/main/src/main.tsx
Steps to Reproduce the Bug or Issue
Expected behavior
The red screen should never appear (it's a background colour around the RouteProvider). The route provider must be returning
nullfor a period before it renders the pending component. This works on 1.117.0 and is broken in 1.117.1.Screenshots or Videos
https://www.loom.com/share/9bda2fdbe0ac4e629d41855b5c66c6ac
Platform
Additional context
No response