JesusTheHun / storybook-addon-remix-react-router

Use your app router in your stories. A decorator made for Remix React Router and Storybook
Apache License 2.0
47 stars 11 forks source link

Not working with useLocation #7

Closed douglasgomes98 closed 1 year ago

douglasgomes98 commented 1 year ago

It's my storybook configuration:

image

It's my story: code

The error; useLocation() may be used only in the context of a component.

JesusTheHun commented 1 year ago

Hi 👋 can you please share all the code involved (with stackblitz for example) ? So I can reproduce the issue and poke around to find the issue.

douglasgomes98 commented 1 year ago

I managed to get it working, it was project setup where I was using react-router-dom as an external library. thanks!