Skip to content

Commit

Permalink
feat(gatsby): Defer node mutation during querying (gatsbyjs#25479)
Browse files Browse the repository at this point in the history
* Move bootstrap into machine

* Add parent span and query extraction

* Add rebuildSchemaWithSitePage

* Use values from context

* Remove logs

* Add redirectListener

* Changes from review

* Log child state transitions

* Add state machine for query running

* Changes from review

* Changes from review

* Switch to reporter

* Use assertStore

* Remove unused action

* Remove unusued config

* Remove unusued config

* Add gql runner reset

* Handle node mutation queuing and batching in state machine

* Use new pagedata utils

* Use develop queue

* New xstate syntax

* Work-around xstate bug

* Track first run

* Track first run

* Disable --quiet in e2e

* Don't defer node mutation if we're outside the state machine

* Re-quieten e2e

* Listen for query file changes

* Lint

* Handle webhook

* Changes from review

* Fix typings

* Changes from review

* Typefix

* feat(gatsby): Move final parts into develop state machine (gatsbyjs#25716)

* Move remaining parts into state machine

* Move top level state machine into state machines dir

* Add machine ids

* Add missing imports

* Resolve api promises

* Remove unused action

* Move logging into helper

* Changes from review

* Manually save db

* Add comments

* Remove first run from query running

* Refactor into separate data layer machines

* Fix condition

Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
  • Loading branch information
ViCo0TeCH and gatsbybot committed Jul 22, 2020
1 parent a3066de commit 5b05c98
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,12 @@
dependencies:
"@types/node" "*"

"@types/node@*", "@types/node@^8.5.7":
"@types/node@*":
version "14.0.14"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.0.14.tgz#24a0b5959f16ac141aeb0c5b3cd7a15b7c64cbce"
integrity sha512-syUgf67ZQpaJj01/tRTknkMNoBBLWJOBODF0Zm4NrXmiSuxjymFrxnTu1QVYRubhVkRcZLYZG8STTwJRdVm/WQ==

"@types/node@^8.5.7":
version "8.10.61"
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.10.61.tgz#d299136ce54bcaf1abaa4a487f9e4bedf6b0d393"
integrity sha512-l+zSbvT8TPRaCxL1l9cwHCb0tSqGAGcjPJFItGGYat5oCTiq1uQQKYg5m7AF1mgnEBzFXGLJ2LRmNjtreRX76Q==
Expand Down

0 comments on commit 5b05c98

Please sign in to comment.