Replies: 2 comments 3 replies
-
It's hard to say without a reproduction, but my hunch is that this is due to your If it's not that - then if you can provide a minimal reproduction of the issue I'd be happy to look into it 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
-
It wasn't the AuthenticationGuard but thanks to reproducing the issue like you suggested, I found the problem on my end. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of React Router are you using?
6.8
Steps to Reproduce
This is my router:
Expected Behavior
When I navigate to 'dashboard/careers/new', it should render the Careers component when navigate('/dashboard/careers') is called. Likewise, when I navigate to 'dashboard/logbooks/pilotlogbook', it should render the Logbooks component when navigate('/dashboard/logbooks') is called.
Actual Behavior
Whenever I navigate to 'dashboard/careers/new' or to 'dashboard/careers/pilot' calling navigate('/dashboard/careers') changes the URL but the actual component, Careers is not rendered. All I get is a blank page.
Similarly, clicking navigate('/dashboard/logbooks') at ('dashboard/logbooks/pilotlogbook') changes the URL but does not render the Logbooks component.
It works correctly if I am at 'dashboard/careers/new' and I call navigate('/dashboard/logbooks') and vice-versa.
Beta Was this translation helpful? Give feedback.
All reactions