Skip to content
Discussion options

You must be logged in to vote

I'd recommend using a more fine-grained selector to reduce the number of component re-renders.

const location = useRouterState({ select: (s) => s.location })

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@SeanCassiere
Comment options

Answer selected by SeanCassiere
@ParasSolanki
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants