The observable that emits true when the window looses focus, and emits false when the window receives focus.
true
false
import abortWhen from 'react-executor/plugin/abortWhen';import windowBlurred from 'react-executor/observable/windowBlurred';const executor = useExecutor('test', heavyTask, [ abortWhen(windowBlurred),]); Copy
import abortWhen from 'react-executor/plugin/abortWhen';import windowBlurred from 'react-executor/observable/windowBlurred';const executor = useExecutor('test', heavyTask, [ abortWhen(windowBlurred),]);
The observable that emits
true
when the window looses focus, and emitsfalse
when the window receives focus.