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