Skip to content

How to listen for the route change? #4240

Closed Answered by orangecoloured
orangecoloured asked this question in Q&A
Discussion options

You must be logged in to vote

I think I found a way to listen to route change. useEffect on pageContext.urlPathname in the main component does the job. At least for now it's enough.

Replies: 1 comment

Comment options

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