The plugin that invalidates the settled executor result when the observable emits true.
true
import invalidateWhen from 'react-executor/plugin/invalidateWhen';import windowFocused from 'react-executor/observable/windowFocused';const executor = useExecutor('test', heavyTask, [ invalidateWhen(windowFocused),]); Copy
import invalidateWhen from 'react-executor/plugin/invalidateWhen';import windowFocused from 'react-executor/observable/windowFocused';const executor = useExecutor('test', heavyTask, [ invalidateWhen(windowFocused),]);
The plugin that invalidates the settled executor result when the observable emits
true
.