-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
Can't seem to hook this up to gatsby #30
Comments
After some more digging, looks like this is due to gaearon/react-hot-loader#1088 so feel free to close. For anyone coming across this before a fix is released for import { setConfig } from 'react-hot-loader';
setConfig({ pureSFC: true }); |
Glad you found a solution, and thanks for reporting back. 👍❤️ |
This doesn't seem to work. I am adding the fix for react-hot-loader. I am pretty stuck because I love Easy-Peasy.
|
Using the standard way of connecting Gatsby to Redux doesn't work with the easy-peasy provider.
useStore
anduseAction
work in the sense that you can see actions and state changes in Redux DevTools, but the App component tree never gets updated.I think it's possibly because Gatsby uses reach-router, so the wrapRootElement API which is usually used to add providers to the tree passes an element and not the root component?
Any thoughts on how to hook easy-peasy up to Gatsby without falling back to the
react-redux
provider and connect methods (and losing out on useStore/useAction)The text was updated successfully, but these errors were encountered: