Skip to content

Update redux store from onRouteUpdate? #26874

Closed Answered by herecydev
jonny-harte asked this question in Help
Discussion options

You must be logged in to vote

Use wrapPageElement, this will give you access to each page's props. I'm guessing you would want to inspect the path prop and then dispatch an appropriate action into your redux.

Replies: 6 comments

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
Answer selected by LekoArts
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #26874 on October 19, 2020 09:02.