- Notifications
You must be signed in to change notification settings - Fork65
Open
Description
Describe the Bug
We have a route:
a/:aId/b/:bId/c/:cId/x
We also have a loader for the x section:
loader: ({ params: { a } }) => fetchData({ a }) // It depends only on the "a" parameter.There should be a way to control data fetching using dependencies:loaderDeps: ({ params: { a } }) => ({ a }),However, there is currently no built-in functionality to reload the loader only when the parent or current route changes, while preventing refetching when child routes change.The shouldReload options (true / false / undefined) are not intuitive, so a mode-based approach could be more flexible.
Generouted Version
1.111.7
Your Example Website or App or Reproduction
Steps to Reproduce the Bug or Issue
It comes from the documentation:https://tanstack.com/router/v1/docs/framework/react/guide/data-loading
Expected Behavior
There suould be easy and understandable way to control you loaders.
Screenshots or Videos
No response
Platform
all
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels