AFAIK, the only way to access the state currently is from the container. This is not handy.
I would like a hook to consume the closest navigator state to have access, for example, to the selected route.
Once this
useNavigatorState
is implemented,
useSelectedRoute
would be just a simple wrapper around with a safe fallback in case of
undefined
state.