We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue:
"storybook-react-router": "^1.0.8",
react
It shows the following error when I use useRouteMatch hook:
useRouteMatch
TypeError: Cannot read property 'match' of undefined at useRouteMatch (http://localhost:6007/vendors~main.44791deccf2e14082e5e.bundle.js:138564:78) . . . at StoryRouter (http://localhost:6007/vendors~main.44791deccf2e14082e5e.bundle.js:145079:7)
Couldn't get unoptimized version because of this issue on storybook, storybookjs/storybook#8062
const CompanyDetailsPage = () => { const { path, params } = useRouteMatch(); const to = pathToRegexp.compile(path)({ ...params, someparameter: 'someparameter', }), return (<Link to={to} >Link</Link>) };
should raise mentioned error.
The text was updated successfully, but these errors were encountered:
Any updates on this issue?
Sorry, something went wrong.
No branches or pull requests
Issue:
Which version are you using?
"storybook-react-router": "^1.0.8",
Are you using storybook-router with a react based project or a vue one?
react
Please describe the problem:
It shows the following error when I use
useRouteMatch
hook:Couldn't get unoptimized version because of this issue on storybook, storybookjs/storybook#8062
Please explain how to reproduce the issue or (better) provide an example to do it.
should raise mentioned error.
The text was updated successfully, but these errors were encountered: