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

feat(gatsby): Move page component state & side effect handling to xstate #11897

Merged
merged 53 commits into from
Mar 26, 2019

Commits on Feb 19, 2019

  1. Inital work to move component query handling to xstate + fix bug with…

    … major relay-compilier update
    KyleAMathews committed Feb 19, 2019
    Configuration menu
    Copy the full SHA
    d61316e View commit details
    Browse the repository at this point in the history
  2. Expand model to include we don't want to immediately extract queries …

    …while bootstrapping + initiate extracting queries from machine when new page component is created
    KyleAMathews committed Feb 19, 2019
    Configuration menu
    Copy the full SHA
    5db0b2c View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2019

  1. Configuration menu
    Copy the full SHA
    2abcb2c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    799391f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bbbd20b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5f53d33 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d8fb163 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2019

  1. Let state machine know when a query has been run and only re-run quer…

    …ies if the page query changes
    KyleAMathews committed Feb 21, 2019
    Configuration menu
    Copy the full SHA
    97226e6 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2019

  1. Configuration menu
    Copy the full SHA
    9347c2f View commit details
    Browse the repository at this point in the history
  2. Make name more explicit

    KyleAMathews committed Feb 22, 2019
    Configuration menu
    Copy the full SHA
    d242435 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2019

  1. Configuration menu
    Copy the full SHA
    a124367 View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2019

  1. Clarify comment

    KyleAMathews committed Feb 25, 2019
    Configuration menu
    Copy the full SHA
    aaf8bf3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    53eea1c View commit details
    Browse the repository at this point in the history
  3. Handled in last commit

    KyleAMathews committed Feb 25, 2019
    Configuration menu
    Copy the full SHA
    0e4d4df View commit details
    Browse the repository at this point in the history
  4. Only handle clean ids for static queries (for now until model static …

    …queries in a machine as well)
    KyleAMathews committed Feb 25, 2019
    Configuration menu
    Copy the full SHA
    df226de View commit details
    Browse the repository at this point in the history
  5. In hacky/temp way (until modeling pages directly), check if a new pag…

    …e has been created and run its query
    KyleAMathews committed Feb 25, 2019
    Configuration menu
    Copy the full SHA
    6f60428 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8631558 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e5525b4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    647b2dd View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2019

  1. Configuration menu
    Copy the full SHA
    c3bb339 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3e0ddcf View commit details
    Browse the repository at this point in the history
  3. Update snapshots

    KyleAMathews committed Feb 26, 2019
    Configuration menu
    Copy the full SHA
    9343d8e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0e4c346 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fd4edaa View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    50e9b0f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0066cad View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    10298a4 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2019

  1. Configuration menu
    Copy the full SHA
    b98ea2a View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2019

  1. Small fixes

    KyleAMathews committed Feb 28, 2019
    Configuration menu
    Copy the full SHA
    836ef5e View commit details
    Browse the repository at this point in the history
  2. Update packages/gatsby/src/redux/reducers/components.js

    Co-Authored-By: KyleAMathews <mathews.kyle@gmail.com>
    wardpeet and KyleAMathews committed Feb 28, 2019
    Configuration menu
    Copy the full SHA
    3b2006f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4f994f6 View commit details
    Browse the repository at this point in the history
  4. Switch page components out of bootstrap state right after bootstrap q…

    …uery running is finished so if a stateful page changes, new queries are still run
    KyleAMathews committed Feb 28, 2019
    Configuration menu
    Copy the full SHA
    2fb8794 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1d3074f View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2019

  1. Configuration menu
    Copy the full SHA
    cb23533 View commit details
    Browse the repository at this point in the history
  2. During bootstrap, only run page queries that are 'clean' (i.e. we hav…

    …en't seen them before) or 'dirty' (i.e. their tracked nodes changed since the last run)
    KyleAMathews committed Mar 5, 2019
    Configuration menu
    Copy the full SHA
    beebbea View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    17d34d9 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2019

  1. Move simple set context actions to top-level so don't have to repeat …

    …across each state (thanks @pieh!)
    KyleAMathews committed Mar 7, 2019
    Configuration menu
    Copy the full SHA
    37baf68 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2019

  1. Simplify logic for running queries for new pages

    We only want to run page queries in two circumstances:
    - the query has changed
    - the data has changed
    
    This is true whether in bootstrap or not.
    
    This commit simplifies the reducer / machine logic to not distinguish
    between whether in bootstrap or not.
    
    Also fixes the bug @pieh found where we we're re-running queries in
    bootstrap if the query had changed.
    KyleAMathews committed Mar 8, 2019
    Configuration menu
    Copy the full SHA
    5100484 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2019

  1. Configuration menu
    Copy the full SHA
    a8c32e1 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2019

  1. Configuration menu
    Copy the full SHA
    9daeae2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c299ae6 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2019

  1. Configuration menu
    Copy the full SHA
    36bda2e View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2019

  1. Page components shouldn't control extraction — moving that to them me…

    …ant changes to static queries weren't being run
    KyleAMathews committed Mar 16, 2019
    Configuration menu
    Copy the full SHA
    1adc63d View commit details
    Browse the repository at this point in the history
  2. Now that we're not tracking query extracting, add event for when babe…

    …l successfully extracts queries so we can know to leave babe error state
    KyleAMathews committed Mar 16, 2019
    Configuration menu
    Copy the full SHA
    7932e8e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f4bb7c2 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2019

  1. Configuration menu
    Copy the full SHA
    20fcf49 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    03f4b37 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8dfe393 View commit details
    Browse the repository at this point in the history
  4. trivial change

    KyleAMathews committed Mar 22, 2019
    Configuration menu
    Copy the full SHA
    cedc761 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2019

  1. Configuration menu
    Copy the full SHA
    b3fd97b View commit details
    Browse the repository at this point in the history
  2. yarn.lock change

    KyleAMathews committed Mar 25, 2019
    Configuration menu
    Copy the full SHA
    83eedb2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    76475f5 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2019

  1. Update from master

    KyleAMathews committed Mar 26, 2019
    Configuration menu
    Copy the full SHA
    67ef857 View commit details
    Browse the repository at this point in the history