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

@wordpress/data: Allow for subscribing listeners to specific stores. #15483

Closed
wants to merge 1 commit into from

Commits on May 7, 2019

  1. implement dependencies for subscribers.

    This allows consuming code to pass in a list of stores the listener is specifically subscribing to.  The listener will only get invoked when for any state changes on the dependent stores.
    
    Default behaviour is preserved if no dependency array is passed in.
    nerrad committed May 7, 2019
    Configuration menu
    Copy the full SHA
    40bd259 View commit details
    Browse the repository at this point in the history