- add
useRoutes
to exports - make
activeRef
inuseNavigate
a$state
variable, set to true when$effect
is run (as opposed to$effect.pre
previously).
This change makes it so thatnavigate
returned fromuseNavigate
only actually navigates after the component in which it's called has mounted.