Replies: 1 comment
-
invalidate should also run on cachedMatches: https://github.com/TanStack/router/blob/main/packages/react-router/src/router.ts#L2730 can you please provide a complete minimal example by forking one of the existing examples on stackblitz? maybe you need to call |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Consider this scenario:
/create
is not nested inside route/list
./create
that creates something via a mutation/list
and after that, redirect to/list
.I can't figure out how to do this.
This does not work since the
invalidate
only will run on current matches which is/create
.If I redirect and then invalidate, you will see outdated data on
/list
.Beta Was this translation helpful? Give feedback.
All reactions