Closed UberMouse closed 1 year ago
Something like useIsRouteActive(route: AnyRoute): boolean
useIsRouteActive(route: AnyRoute): boolean
Should be fairly simple to implement by checking if the activeRouteEvents array on the RoutingContext contains the given route or not.
activeRouteEvents
RoutingContext
This was implemented in https://github.com/koordinates/xstate-tree/pull/38
Something like
useIsRouteActive(route: AnyRoute): boolean
Should be fairly simple to implement by checking if the
activeRouteEvents
array on theRoutingContext
contains the given route or not.