The plugin that aborts the pending task if the observable pushes false.
false
import abortWhen from 'react-executor/plugin/abortWhen';import windowFocused from 'react-executor/observable/windowFocused';const executor = useExecutor('test', heavyTask, [ abortWhen(windowFocused)]); Copy
import abortWhen from 'react-executor/plugin/abortWhen';import windowFocused from 'react-executor/observable/windowFocused';const executor = useExecutor('test', heavyTask, [ abortWhen(windowFocused)]);
The plugin that aborts the pending task if the observable pushes
false
.