TanStackT
TanStack2y ago
15 replies
living-lavender

Is there a way to pass data when navigating?

Use case: on a page (parent) I have two tabs with inside a button each that navigate to a specific child page.
From the child I want to navigate back but I also want to land in the right parent tab.

How can I pass this info during the navigate? I attemped a hack with query params + route masking but I wish there was an easier way.
Was this page helpful?