Replies: 1 comment
-
|
I'm seeing this too. I'm using Nuqs to put datatable query params in the URL, so every time I change my datatable search, the whole app re-renders, even if it is on a debounce. This doesn't seem right to me. Seems like only things that subscribe to route changes to re-render. What am I missing? |
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.
-
We got a pretty big app, one of our view has complex logic under one of routes. After testing, we noticed that adding parameter to search params causes to rerender whole app, which takes ~800ms.
In below screenshot we dont even utilize param
stuffanywhere in the app but it still gets to be rerendered.Example code
and example with same onClick but with changing something using zustand
Conclusion
So I think what react-location lacks is the selectors that react-redux or zustand have, which allows to skip re-rendering if the selected slice is the same.
Am I right or I am missing something?
Tested on version
3.7.4Beta Was this translation helpful? Give feedback.
All reactions