Replies: 1 comment
-
How did you solve it? I've been dealing with the same issue. Nothing seems to work "/", "", "/" |
Beta Was this translation helpful? Give feedback.
0 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.16.0 and 6.2.2
Steps to Reproduce
I got an error in the console:
My App.tsx:
RouterComponent.tsx:
routes:
Expected Behavior
Case 1:
When change from
'/'
to'*'
the
<NotFound />
which has path:'*'
, doesn't work.Ok, then I change from
'/'
to'/*'
. Anyway, the<NotFound />
which has path:'*'
, doesn't work.Case 2:
I tried to set not to use the useRoutes(). Nest inside one another using
<Outlet />
inside the<CustomerLayout>
:I had the same error:
history.ts:501 You rendered descendant <Routes> (or called
useRoutes()) at "/" (under <Route path="/">) but the parent ...
Then ok, I changed to
'/'
to'/*'
. But it doesn't render any of the<Schedules />
or<Dashboard />
components.Actual Behavior
Case 1 is expected to work where the path works:
'*'
with the .Beta Was this translation helpful? Give feedback.
All reactions