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
First of all, thanks for this great package! We have a use case where we filter a list of items via search input and store that filter in query parameters in the URL, so users can share the filtered view. Now we expected only the components that depend on useLocation to re-render, but it seems the entire router is re-rendered? (and as a consequence, the entire sub-tree). Here is a codesandbox to demonstrate the issue: https://codesandbox.io/s/red-dawn-94de9
Is there a way to update query parameters without causing a re-render of entire tree?
The text was updated successfully, but these errors were encountered:
First of all, thanks for this great package! We have a use case where we filter a list of items via search input and store that filter in query parameters in the URL, so users can share the filtered view. Now we expected only the components that depend on
useLocation
to re-render, but it seems the entire router is re-rendered? (and as a consequence, the entire sub-tree). Here is a codesandbox to demonstrate the issue: https://codesandbox.io/s/red-dawn-94de9Is there a way to update query parameters without causing a re-render of entire tree?
The text was updated successfully, but these errors were encountered: