Aborts the pending task after the delay if the executor is deactivated.
The executor must be activated at least once for this plugin to have an effect.
import abortDeactivated from 'react-executor/plugin/abortDeactivated';const executor = useExecutor('test', heavyTask, [abortDeactivated()]); Copy
import abortDeactivated from 'react-executor/plugin/abortDeactivated';const executor = useExecutor('test', heavyTask, [abortDeactivated()]);
Aborts the pending task after the delay if the executor is deactivated.
The executor must be activated at least once for this plugin to have an effect.