Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Strange behavior on Dropdown Link item #3593
Using a Dropdown with options as Link, I get the error in a specific case :
1.When I'm on route "/" and I refresh the browser and try to click on one item from the dropdown menu, it fails with the error I've pasted upside.
I tried to create a Menu.Item with one of the route in the Dropdown options, and I have no issue with it.
Each time I refresh my browser, the Dropdown Links does not work until I navigate first to a Link outside dropdown menu.
I should not have any errors in routing with Dropdown Item.
As far I do not refresh the page, routing works, but if I refresh the browser, I need to go on / before moving onto routes accessible from dropdown items.
If needed, I'll try to make a testcase
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
I've made a sandbox but I can not reproduce my issue.
But while I was trying things, I found that when I removed the lazy load of route, it seems to fix the bug..
And if I just impor it :
I have no more error...