Module plugin/abortWhen

The plugin that aborts the pending task if the observable emits false.

import abortWhen from 'react-executor/plugin/abortWhen';
import navigatorOffline from 'react-executor/observable/navigatorOffline';

const executor = useExecutor('test', heavyTask, [
abortWhen(navigatorOffline)
]);

Index

Interfaces

Functions