(React Context Beginner) React Context doesn’t stat when changing page using react-rooter-dom

So i solved it by using react-router-dom <Link/>.

Given that I wanted to do the routes once my pages are initialized, I was navigating between pages by url, so Context was always clearing and app refreshing witch is not what we want. So I used <Link/> and then it works because <Link/> help you to navigate without refreshing I guess…

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top