• 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
..
test Loading commit data...
account-id.js Loading commit data...
annotation-metadata.js Loading commit data...
annotation-sharing.js Loading commit data...
array.js Loading commit data...
copy-to-clipboard.js Loading commit data...
date.js Loading commit data...
disable-opener-for-external-links.js Loading commit data...
dom.js Loading commit data...
fetch-config.js Loading commit data...
group-list-item-common.js Loading commit data...
group-organizations.js Loading commit data...
groups.js Loading commit data...
immutable.js Loading commit data...
is-sidebar.js Loading commit data...
is-third-party-service.js Loading commit data...
memoize.js Loading commit data...
oauth-client.js Loading commit data...
observe-element-size.js Loading commit data...
on-activate.js Loading commit data...
permissions.js Loading commit data...
postmessage-json-rpc.js Loading commit data...
random.js Loading commit data...
retry.js Loading commit data...
scope-timeout.js Loading commit data...
sentry.js Loading commit data...
service-context.js Loading commit data...
session.js Loading commit data...
state.js Loading commit data...
tabs.js Loading commit data...
theme.js Loading commit data...
thread.js Loading commit data...
time.js Loading commit data...
url.js Loading commit data...
version-data.js Loading commit data...
watch.js Loading commit data...
wrap-react-component.js Loading commit data...