[FIXED] Prevent Router's loader to rerun when the hash changes
How can i prevent a loader to rerun whenever i change the url's hash?
Whenever i click the button, the route's loader runs again. How can i prevent it from running the loader again?
For example if i am currently in clicking a button to go to causes the loader to run again
1 Reply
foreign-sapphireOP•16mo ago
fixed it by adding a staleTime for the loader function. I'm not sure if there's a better way of doing it, if so please let me know.