Replies: 3 comments 1 reply
-
I think PR #1556 is somewhat related to this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@jvllmr did you find a way to prevent tanstack from rerendering when search params change? |
Beta Was this translation helpful? Give feedback.
1 reply
-
if you are using useSearch hook you might have to include select inside it to just subscribe to the params you need rerender page for. For other params for which you dont want to rerender on change, you can use useState(router.state.location.search) instead of useSearch. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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