Skip to content

How to globally capture matched params before / after route change? #128

Answered by tannerlinsley
borie88 asked this question in Q&A
Discussion options

You must be logged in to vote

You could try using a wildcard with useMatchRoute from the root. Or you could just listen to useRouter().state.matches, and use the params from the last match (it would have all of them)

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by borie88
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants