Closed Srujna closed 2 years ago
Can you please guide me where I am going wrong
Hi @Srujna, it's a little difficult to say without seeing your code. But generally useRouteParams
doesn't reference the location
prop directly it rather depends on the react router context. Are you sure your storybook is running it within the said context?
I have a component where I have used useRouteParams of 'typesafe-routes/react-router' Component working fine however when I try to add this component to a storybook story, it is failing: