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
Is there a way to use the new compat library for transitioning to v6 when the app is using only react-router-config, similar to how the CompatRoute component works?
I found that when using <CompatRouter /> and the v5 react-router-config for routing some hooks do not work like useParams or useMatch.
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
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to use the new compat library for transitioning to v6 when the app is using only
react-router-config, similar to how theCompatRoutecomponent works?I found that when using
<CompatRouter />and the v5react-router-configfor routing some hooks do not work likeuseParamsoruseMatch.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions