Using Easy Peasy in Gatsby
See original GitHub issueHello, im getting this error, im using gatsby 2.15.36 with a fresh new install using gatsby new command
Uncaught Error: An error occurred trying to map state in a useStoreState hook: Cannot read property 'getState' of undefined. at useStoreState (easy-peasy.esm.js:41)
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
easy-peasy examples - CodeSandbox
Learn how to use easy-peasy by viewing and forking easy-peasy example apps on CodeSandbox.
Read more >Why you should be using Gatsby - JavaScript in Plain English
easy -peasy, graph and squeezy. Instead of Redux, Gatsby uses GraphQL for state management which is increasingly being used with Node.js and ...
Read more >Easy Peasy v5
Easy Peasy is an abstraction of Redux, providing a reimagined API that focuses on developer experience. It allows you to quickly and easily ......
Read more >Tailwind CSS and Gatsby in Under 5 Minutes | Hash Interactive
Easy peasy ! Now in all of your components you can use Tailwind CSS utility classes, or in your imported css files you...
Read more >Learning how to code with Gatsby
Easy peasy. They want to build for production they use $ gatsby build && gatsby serve . Simple! Netlify: When I showed them...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I have a working setup with TypeScript which works well:
Hey @wrtisans
I have yet to use Gatsby myself, but in terms of configuring the StoreProvider you would need to follow a similar strategy as if you were implementing a standard
react-reduxProvider. The Gatsby repo has an example you can reference:https://github.com/gatsbyjs/gatsby/tree/master/examples/using-redux