Getting routeContext on components?
Is it possible to get the routeContext in a sub component under the route?
3 Replies
yammering-amber•3y ago
props
or useRouter hook may be
xenial-black•3y ago
Use the exported useRouteContext hook
fair-roseOP•3y ago
tried that.... required 1 parameter.... cant figure out which
example?
found it :
useRouteContext({from:'route.id')}