Releases: kyeotic/raviger
Releases · kyeotic/raviger
4.1.2
4.1.1
4.1.0
4.0.0
Added
useHistory
usePath
Changed
- BREAKING:
navigate
now hasoptions
object instead of overloads - BREAKING:
useNavigate
uses updatednavigate
params - BREAKING:
useLocationChange
now invokes the setter with aRavigerLocation
object instead of thepath
string
Fixed
usePath
getting an old path ifnavigate
was called during the initial render
v3.1.0
v3
Changed
- BREAKING:
usePath
returnsdecodeURIComponent
-ed path - BREAKING:
useRoutes
,useMatch
, andusePathParams
match paths that have beendecodeURIComponent
-ed (e.g./weird (route)
will match a path of/weird%20(route)
) - BREAKING: type
RouteParams
renamed toRoutes
- BREAKING:
usePathParams
return type now depends on the input params. When a string it returns just the props, when an array it returns[path, props]
Added
RouterProvider
Fixed
useRoutes
function-values to use props typestring
(wasany
)