Routing stops working on changing the theme
See original GitHub issueHey!
Thanks for creating this portfolio. This is some good stuff. I’ve noticed a bug though-
After switching the theme, the routing stops working and this warning is seen on the console:
Warning: You cannot change <Router history>
Are you aware of this? Any ideas?
Update:
So, I think the issue was being caused by the router re-rendering. I made it to work by creating history
in index.js
and then passing it to Main.js
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Changing site theme when rendering a new Route
The issue is that since rendering a new route now re-renders the Page, the entire page, including static elements like the header and...
Read more >does not working routing.yml file when i editing anything in ...
Hi... i am new in Drupal & i am using working on drupal 8 which is existing project. and i am changing anything...
Read more >Shopify Self-Install Troubleshooting FAQ - Route
If the Route asset has large margins and too much white space between the elements around it, follow these steps to fix the...
Read more >Styles are not removed by router after navigation when using ...
When changing route, a new style tag gets added to head if the component has global styles, i think the old style tags...
Read more >Designing a system: WordPress routing | The Man in the Arena
This is the first thing that we're going to fix. The simplest way to do this is to change the structure of our...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
When I run this project on my side, it works well. and I tried to get the warning for changing theme for several times, but there was no issue or warning. Where can I find the issue? I think we can close this issue.
Unlikely in the next few weeks, will try if I get time.