question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Routing stops working on changing the theme

See original GitHub issue

Hey! 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:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
best-lucky1030commented, Nov 23, 2021

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.

1reaction
rajatkhare619commented, Sep 27, 2021

Unlikely in the next few weeks, will try if I get time.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found