The plugin that retries the latest task if the observable pushes false and then true.
false
true
import retryWhen from 'react-executor/plugin/retryWhen';import windowFocused from 'react-executor/observable/windowFocused';const executor = useExecutor('test', heavyTask, [ retryWhen(windowFocused)]); Copy
import retryWhen from 'react-executor/plugin/retryWhen';import windowFocused from 'react-executor/observable/windowFocused';const executor = useExecutor('test', heavyTask, [ retryWhen(windowFocused)]);
The plugin that retries the latest task if the observable pushes
false
and thentrue
.