-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Could not find "store" in either the context or props & @connect() (redux connected) component #358
Comments
Does adding a prop named |
you can actually wrap the connect component directly in the readme examples.
|
thanks @n1313 @roychoo. I tried those options and think I'm running into an issue with my webpack setup for the styleguide that is causing the store to not render properly so going to do some debugging there. I find it gets tricky sometimes to find some parity between the webpack setup of your app vs. the webpack setup for styleguidist. If I discover anything outside of the webpack issue that benefits this thread I'll be sure to share here. |
Updating the Readme.md file to require the unconnected component worked:
Beyond that also added this line to my styleguide.config.js to resolve an issue with generators from Redux Saga: |
Hi,
Just wanted to see if there is a current solution to render "store" in an @connect() (redux connected) component in the styleguide?
When I view the styleguide, I'm seeing this error:
Invariant Violation: Could not find "store" in either the context or props of "Connect(Footer)". Either wrap the root component in a <Provider>, or explicitly pass "store" as a prop to "Connect(Footer)".
Here's the export statement in Footer.jsx:
In the Wrapper component I tried adding a Provider wrapper without any luck:
In styleguide.config.js I'm referencing:
resolver: docgen.resolver.findAllComponentDefinitions
I saw this thread but didn't mention "store" #143
Looking to see if anyone has a workable recommendation?
The text was updated successfully, but these errors were encountered: