react-space-router
Advanced tools
Changelog
0.6.3
Changelog
0.6.2
Changelog
0.6.1
Changelog
0.5.0
current
behaviour with an explicit current
propChangelog
0.4.0
useMakeHref
that returns makeHref
function for creating hrefsuseLink
to useLinkProps
useRouter
to useInternalRouterInstance
to discourage use of itChangelog
0.3.0
space-router
which allows navigate
to take a string
urluseLink
API with the rest of the router, it takes a string
or an object
now, which is the same as how navigate
worksChangelog
0.2.0
resolver
feature and useNextRoute
- can be implemented in userland. Previously, useNextRoute
was used in <Navigate />
to know if the router is in the process of navigating, but now we use local state for that. This allowed removing useNextRoute
, and so resolver
can now be more easily implemented in userland via onNavigating
, which can block and allows processing matched routes in any way, such as awaiting on data.component = await data.resolver()
. All in all, removing API surface is great, less is more, and async route resolving is getting superseded by Suspense anyway.setImmediate
usage in space-router
.onNavigated
callback, which wasn't getting called correctly previously.