Skip to content

v0.0.14

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Jun 11:41
· 29 commits to master since this release

Changelog: v0.0.13...v0.0.14

  • Added abortWhen, resolveWhen, and retryWhen plugins, that take an Observable and abort, resolve, or retry the executor depending on the value pushed to its listeners.

  • Removed retryFocused. retryWhen should be used instead:

import retryWhen from 'react-executor/plugin/retryWhen';
import windowFocused from 'react-executor/observable/windowFocused';

useExecutor('test', heavyTask, [
  retryWhen(windowFocused)
]);
  • Added abortPending and rejectPending plugins that abort the pending task if the execution takes too long:
import abortPending from 'react-executor/plugin/abortPending';

useExecutor('test', heavyTask, [
  abortPending(10_000)
]);
  • Fixed XSS-prone hydration script.