We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6.15.0
https://stackblitz.com/edit/github-fmmzla
Click on "A route" and navigate to "B route"
During navigating from A to B, the A component should not be rendered...
During navigation from A to B, the A is still rendered. After the loader is finished with the setTimeout, the A is removed.
The text was updated successfully, but these errors were encountered:
Possible solution, but it feels kinda weird
{loading ? <Loader /> : <Outlet />}
The <Outlet /> should update itself?
<Outlet />
Sorry, something went wrong.
This is expected behavior: https://reactrouter.com/en/main/start/overview#pending-navigation-ui
@timdorr So the <Outlet /> in the docs should be conditional as my "possible" solution, right? Else you are gonna have the problem I described...
No branches or pull requests
What version of React Router are you using?
6.15.0
Steps to Reproduce
https://stackblitz.com/edit/github-fmmzla
Click on "A route" and navigate to "B route"
Expected Behavior
During navigating from A to B, the A component should not be rendered...
Actual Behavior
During navigation from A to B, the A is still rendered. After the loader is finished with the setTimeout, the A is removed.
The text was updated successfully, but these errors were encountered: