-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested Router error after upgrading to Storybook v6.4 from v6.3 #17712
Comments
We've updated the way we handle
Does that fix it? |
I still get the error when running |
@karsai5 can you do an |
After doing some more reading I found this comment which seems to work in case anyone else runs into the same issue remix-run/react-router#7375 (comment). My decorator now looks like this: (Story) => (
<UNSAFE_LocationContext.Provider value={null}>
<MemoryRouter>
<Story />
</MemoryRouter>
</UNSAFE_LocationContext.Provider>
), |
We’re cleaning house! Storybook has changed a lot since this issue was created and we don’t know if it’s still valid. Please open a new issue referencing this one if:
|
Thank 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.The text was updated successfully, but these errors were encountered: