• Robert Knight's avatar
    Add utility to watch for changes in certain values · c313ec3b
    Robert Knight authored
    This will be used to streamline a common pattern in our code for
    reacting to changes in state selected from the central Redux store.
    
    The utility is a standalone function rather than a method of the store
    so that it can easily be used with mock stores and also other data
    sources in future.
    
    ```
    watch(
      store.subscribe,
      () => store.getState().someValue,
      (currentValue, prevValue) => { /* Handle change */ },
    );
    ```
    c313ec3b
Name
Last commit
Last update
..
annotator Loading commit data...
boot Loading commit data...
images/icons Loading commit data...
shared Loading commit data...
sidebar Loading commit data...
styles Loading commit data...
test-util Loading commit data...
.eslintrc Loading commit data...
karma.config.js Loading commit data...
tsconfig.json Loading commit data...