Error propagating to parent routes
Given this structure:
If an error happens in
/posts/$id
and in its errorComponent
we navigate to /posts
, now the /posts
's errorComponent
will show up.
I'd expect that the parent error component wouldn't show up if its children route has errors.
I've tried reset()
before navigating away from /posts/$id
And i've tried unnesting the /posts/$id
route following this tutorial.
Am I missing something or is this expected behavior?Routing Concepts | TanStack Router React Docs
TanStack Router supports a number of powerful routing concepts that allow you to build complex and dynamic routing systems with ease.
The Root Route
0 Replies