TanStackT
TanStack15mo ago
7 replies
urgent-maroon

Link isActive on parent component

I need to pass isActive to the parent component of a Link. It is described here how to do it for a child component:
https://tanstack.com/router/latest/docs/framework/react/guide/navigation#passing-isactive-to-children

But I can't seem to figure out how I could check if the link is active at the parent component. Any help greatly appreciated!
Headless, type-safe, powerful utilities for complex workflows like Data Management, Data Visualization, Charts, Tables, and UI Components.
TanStack | High Quality Open-Source Software for Web Developers
Preview image
Was this page helpful?