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

SDK: Try wp.data with calypso state tree #26838

Closed

Commits on Sep 6, 2018

  1. state: Try wp.data with calypso state tree

    This adds a wp.data plugin that uses the existing calypso state tree but
    pulls in selectors as a first step to being cross-platform.
    coderkevin committed Sep 6, 2018
    Configuration menu
    Copy the full SHA
    4e0f7a6 View commit details
    Browse the repository at this point in the history
  2. state: Action handling for wp.data calypso plugin

    This adds action dispatch handling for the wp.data calypso plugin to
    allow existing Calypso actions to be dispatched against the Calypso
    store.
    coderkevin committed Sep 6, 2018
    Configuration menu
    Copy the full SHA
    4befbc1 View commit details
    Browse the repository at this point in the history
  3. state: wp.data adapter adjustments

    This addresses a couple of PR comments about some optimization and
    additional commenting.
    coderkevin committed Sep 6, 2018
    Configuration menu
    Copy the full SHA
    1388482 View commit details
    Browse the repository at this point in the history
  4. state: Add WP Data Provider to ReduxWrappedLayout

    This adds the data provider to ReduxWrappedLayout in addition to
    RootChild
    coderkevin committed Sep 6, 2018
    Configuration menu
    Copy the full SHA
    bcc4b32 View commit details
    Browse the repository at this point in the history
  5. wp-data: Put preferences in calypso/preferences

    This moves the preferences selectors/actions from a `calypso` wp.data
    store to a `calypso/preferences` wp.data store, for the purpose of
    separating out these stores and organizing them better. This also lays
    the groundwork for separating out the monolithic state tree in calypso
    today.
    coderkevin committed Sep 6, 2018
    Configuration menu
    Copy the full SHA
    17b8bda View commit details
    Browse the repository at this point in the history
  6. State: Use more general-purpose wp.data plugins.

    This creates a `custom-store-plugin` which is more general-purpose than
    the previous `calypso-registry-plugin`. It allows any pre-existing redux
    store to be used for a given wp.data store instead of wp.data creating
    one itself. This allows for two things:
    
    1. Stores can use enhancers and middleware, which is not possible in the
    default wp.data configuration.
    2. wp.data stores can share redux stores.
    
    Note: This also creates an `internals-plugin`, which is necessary to
    avoid the reimplementing of internals within the
    `calypso-registry-plugin`. The `use` function of the `internals-plugin`
    will be submitted as a PR to core Gutenberg as well so perhaps it will
    not be necessary for long.
    coderkevin committed Sep 6, 2018
    Configuration menu
    Copy the full SHA
    d7324b4 View commit details
    Browse the repository at this point in the history
  7. wp-data: internals-plugin, mutate registry in use

    This switches the code back to the way it works in @wordpress/data
    because it's necessary to chain plugins.
    coderkevin committed Sep 6, 2018
    Configuration menu
    Copy the full SHA
    6d8a6cf View commit details
    Browse the repository at this point in the history
  8. wp-data: custom-store-plugin, adjust subscribe

    This adjusts the plugin to not subscribe to the same custom store more
    than once when it's passed in as a custom store for more than one
    wp.data registerStore call.
    coderkevin committed Sep 6, 2018
    Configuration menu
    Copy the full SHA
    90b204b View commit details
    Browse the repository at this point in the history
  9. Update shrinkwrap

    This is to fix the CI errors on the PR that are complaining about the
    shrinkwrap not being in sync.
    coderkevin committed Sep 6, 2018
    Configuration menu
    Copy the full SHA
    c5a4515 View commit details
    Browse the repository at this point in the history