[Bug]: White screen on refresh of page when using "loader" in elements. Not even Navbar component is shown. #10072
Unanswered
joseph-9900
asked this question in
Q&A
Replies: 2 comments 3 replies
-
This feels like it could be a codesandbox browser issue. Pulling that down locally and running it I see the |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm having the same issue. I can't even navigate to the route that has the loader, only when the data is loaded I get redirected to the page. Is this the intented behavior? Still trying to wrap my head around v.6.4. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What version of React Router are you using?
6.8.1
Steps to Reproduce
This is the test URL. - https://codesandbox.io/s/wispy-pond-kj8ofh?file=/src/App.js
1.) Click on Products link from Navbar.
2.) And then wait for around 200 milliseconds for the data to be loaded. And then once refresh the page from refresh
Expected Behavior
The Navbar component should be visible immediately and the Products component data should load in it's time.
Actual Behavior
The entire page becomes white / blank and then the entire data is visible when the refresh button is clicked. At least the Navbar should be visible. loader is used on "Products" component and not on Navbar but still Navbar is not visible until product data arrives.
I don't want to use the "defer". I will be using a loading bar later so that data is shown once the data is available.
How to solve this issue of screen blank when refreshed?
Beta Was this translation helpful? Give feedback.
All reactions