-
I have an application (using react-router v6) in which routes are defined as enums in a simple way e.g. '/home'. I would like to detect if my list item recieving the path '/home' matches the current location. Is there a more elegant/built-in way to do this ? Thanks for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This was fixed in v6.0.0-beta.5 (see the release notes). The |
Beta Was this translation helpful? Give feedback.
This was fixed in v6.0.0-beta.5 (see the release notes). The
basename
is now stripped fromlocation.pathname
inuseLocation()
.