T
TanStack2y ago
unwilling-turquoise

Loader in parent route runs again if only a new child route is rendered

I would think that my loader only runs once in the parent route if a new child route is rendered, for example: loader in dashboard.tsx only runs once if user navigates from dashboard.users.tsx to dashboard.roles.tsx ? But it doesn't. How can i possibly achieve this with file based routing?
2 Replies
unwilling-turquoise
unwilling-turquoiseOP2y ago
fixed it with staleTime 👍
fascinating-indigo
fascinating-indigo2y ago
Weird how similar the thinking patterns are to query huh 😉

Did you find this page helpful?