You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently working with React Router's Data Router, and I have a question regarding how to retrieve the matched route pattern for the current path.
For example, given the current path: /too/edit/b6c9a72a9a0b4ee39557061a9d8017ab, the corresponding route pattern is /too/edit/:id. Is there a recommended way to programmatically get the matched route pattern /too/edit/:id for the current path using React Router's Data Router?
Any guidance or suggestions would be greatly appreciated!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm currently working with React Router's Data Router, and I have a question regarding how to retrieve the matched route pattern for the current path.
For example, given the current path:
/too/edit/b6c9a72a9a0b4ee39557061a9d8017ab
, the corresponding route pattern is/too/edit/:id
. Is there a recommended way to programmatically get the matched route pattern/too/edit/:id
for the current path using React Router's Data Router?Any guidance or suggestions would be greatly appreciated!
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions