T
TanStack3y ago
fair-rose

Getting routeContext on components?

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

Did you find this page helpful?