Module plugin/abortWhen

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

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

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

Index

Functions