Observable of the document.visibilityState.
document.visibilityState
import retryWhen from 'react-executor/plugin/retryWhen';import windowFocused from 'react-executor/observable/windowFocused';const executor = useExecutor('test', heavyTask, [ retryWhen(windowFocused)]); Copy
import retryWhen from 'react-executor/plugin/retryWhen';import windowFocused from 'react-executor/observable/windowFocused';const executor = useExecutor('test', heavyTask, [ retryWhen(windowFocused)]);
Observable of the
document.visibilityState
.