Skip to content
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

Use Redux for internal state plus add prototype for data hot reloading fixes #777 #788

Merged
merged 17 commits into from
Apr 11, 2017

Conversation

KyleAMathews
Copy link
Contributor

This is a noisy PR as there's the Redux refactor that touches almost everything as well as several API name changes.

I'm most interested in a review of how I setup Redux but any other thoughts would be great as well.

I have several additional things I need to refactor after after this lands but wanted to get something in earlier than later rather than create an even larger PR.

In addition to the data hot reloading added in this PR, this sets the stage for caching data and queries between builds so restarting the gatsby dev server will be much faster.

@gatsbybot
Copy link
Collaborator

gatsbybot commented Apr 11, 2017

Deploy preview ready!

Built with commit 9dd9548

https://deploy-preview-788--gatsbygram.netlify.com

@gatsbybot
Copy link
Collaborator

gatsbybot commented Apr 11, 2017

Deploy preview ready!

Built with commit 9dd9548

https://deploy-preview-788--gatsbyjs.netlify.com

@KyleAMathews KyleAMathews merged commit 4b15bd2 into 1.0 Apr 11, 2017
@0x80 0x80 deleted the data-hot-reloading branch April 19, 2017 20:25
mwfrost pushed a commit to mwfrost/gatsby that referenced this pull request Apr 20, 2023
…fixes gatsbyjs#777 (gatsbyjs#788)

* Use DataTree instead of Abstract Syntax Tree

The idea for how to do things was taken from compilers
but since we're not actually parsing syntax into a tree, using
AST terminology is confusing. DataTree seems like a more sensible name.

* Add a watch command for all packages and update contributing instructions

* Add trailing slash when creating script tags for prefixed sites

* Add redux, convert all globals except pages to use it

* Add more tests + convert node api signature to (args, pluginOptions) to make same as browser/ssr api signature

* Use Redux for managing data nodes + initial rough implemenation of hot reloading

* Move raw action dispatching to action creator

* Add nodes tests

* Update windows docs

* Update CONTRIBUTING.md

* Somewhat reliable draining

* Upgrade gatsbygram for PR

* Up sites to latest canary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants