• Robert Knight's avatar
    Simplify and improve type safety of `watch` utility · 61b7e399
    Robert Knight authored
    Simplify the `watch` utility by making it only support a single callback to get
    the watched value, along with an optional comparison function to use to compare
    the results. To watch multiple values the callback can return an array and use a
    shallow-equality comparison.
    
    In `FrameSyncService` the lengthy callback passed to `watch` was
    extracted into a separate function to make the `watch` call more
    readable.
    61b7e399
Name
Last commit
Last update
..
collections-test.js Loading commit data...
copy-to-clipboard-test.js Loading commit data...
disable-opener-for-external-links-test.js Loading commit data...
dom-test.js Loading commit data...
fetch-test.js Loading commit data...
immutable-test.js Loading commit data...
memoize-test.js Loading commit data...
oauth-client-test.js Loading commit data...
observe-element-size-test.js Loading commit data...
pagination-test.js Loading commit data...
postmessage-json-rpc-test.js Loading commit data...
retry-test.js Loading commit data...
search-filter-test.js Loading commit data...
sentry-test.js Loading commit data...
time-test.js Loading commit data...
unicode-test.js Loading commit data...
url-test.js Loading commit data...
watch-test.js Loading commit data...