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