-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[1.0] Include REDUX store if there are store files under store folder #794
Comments
This was originally proposed at #777 |
Interesting piece of information: https://github.com/gatsbyjs/gatsby/releases/tag/v0.12.34 |
Redux is pretty cool, but you don't have to shout it 😉 |
Hey @danielo515! Thanks for kicking off this discussion! So this is an ideal use case for a Gatsby plugin. It could automatically import Redux files and wrap the root render with the Gatsby v1 has similar APIs as to what's been added to 0.x. If you go to this file and search for Here's two official plugins that are using some of these APIs: |
Would love to see a plugin for this but closing this now as it's not a core concern. |
It would be ideal to provide a mechanism to easily include REDUX.
An example workflow would be look for the store directory, if it exists, Gatsby will:
This is similar to what NUXT does: https://nuxtjs.org/guide/vuex-store
Optional additions would be to use REDUX sagas.
I'm not sure if I have described the flow in a technically correct manner, I not sure about the correct terminology. Hope it is clear enough to get the idea.
The text was updated successfully, but these errors were encountered: