It would be nice if the shouldRevalidate param could be passed into the router for when you're using a loader for your component, that way you have control over when the loader should and shouldn't fire on route changes. Right now if you are using a loader, it will fire each time the route changes (like if your component updates search params) and this could lead to undesirable repeated API calls.
Allow shouldRevalidate param
It would be nice if the shouldRevalidate param could be passed into the router for when you're using a loader for your component, that way you have control over when the loader should and shouldn't fire on route changes. Right now if you are using a loader, it will fire each time the route changes (like if your component updates search params) and this could lead to undesirable repeated API calls.
https://reactrouter.com/en/main/route/should-revalidate