Nested Router error after upgrading to Storybook v6.4 from v6.3
See original GitHub issueThank you for this great platform. We’re using react-router v6 in our project and some of our storybook components are using the useLoaction()
hook of react-router. So we provide a location for the components by a decorator like this. After we upgrade Storybook from v6.3 to v6.4 we encounter the following error. So now we have to lock the minor version as ~6.3.8
. Do you have any suggestions for that? Thank you.

Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Nested routing is not working in React Router v6
The default behavior of React Router fails to render multiple child routes with single Outlet. For example - When there is requirement to ......
Read more >Upgrading Storybook
Upgrade script. The most common upgrade is Storybook itself. Storybook releases follow Semantic Versioning. We publish patch releases with bug fixes ...
Read more >Ultimate React Router v6 Guide
React Router is by far the most popular routing library in React and this article goes in depth on everything you need to...
Read more >React Router 6: Nested Routes - Robin Wieruch
A step by step example on Nested Routes with React Router ... ... The code for this React Router v6 tutorial can be...
Read more >Amazing New Features In React & React Router v6 - Medium
The above is standard code that is used to created routes for navigation in React projects. Now let's check React router v6 code:...
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 Free
Top 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
We’ve updated the way we handle
react-router
in 6.5. Try upgrading to the latest prerelease:Does that fix it?
After doing some more reading I found this comment which seems to work in case anyone else runs into the same issue https://github.com/remix-run/react-router/issues/7375#issuecomment-975431736.
My decorator now looks like this: