You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am migrating from react-router-dom to @tanstack/router and I'm facing a critical issue.
The application has SVG Viewers within multiple routes in the application and they update the search params with x, y, z coordinates when panning/zooming the viewer. When the search gets updates, the whole route re-validates and re-renders, resulting in a lot of stuttering.
With react-router I managed to solve this via the shouldRevalidate option (https://reactrouter.com/en/main/route/should-revalidate). Can I achieve the same in @tanstack/router. I tried using the shouldReload option, but it didn't work the same.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am migrating from
react-router-dom
to@tanstack/router
and I'm facing a critical issue.The application has SVG Viewers within multiple routes in the application and they update the search params with x, y, z coordinates when panning/zooming the viewer. When the search gets updates, the whole route re-validates and re-renders, resulting in a lot of stuttering.
With react-router I managed to solve this via the
shouldRevalidate
option (https://reactrouter.com/en/main/route/should-revalidate). Can I achieve the same in@tanstack/router
. I tried using theshouldReload
option, but it didn't work the same.Beta Was this translation helpful? Give feedback.
All reactions