Replies: 2 comments
-
I have added a failing test for the above to the |
Beta Was this translation helpful? Give feedback.
0 replies
-
After a bit more digging, it seems that RR is treating these as nested routes, so a workaround is to add a hidden suffix to the "parent".... eg |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Given the following file routes:
when navigating to
/item/1/edit
theitem.$id.tsx
route is matched.To me this looks like a bug since in the route component the value of
params.id
is returned as1
not1.edit
(as the matched path might suggest) but maybe it's intentional?Is there a way to tell react router which route to prioritise when matching?
Beta Was this translation helpful? Give feedback.
All reactions