Skip to main content
Version: v8.0.0

isNavigatorOnline

Reads the current network state from the browser. Falls back to true when it is unknown - e.g. in Node.js or React Native, where navigator.onLine is not available.


Import
import { isNavigatorOnline } from "@hyper-fetch/core"

Parameters​

isNavigatorOnline()

Returns​

boolean