This function is a react hook for determining whether an application is in an offline state.
<IsOfflineContextProvider/>
import { useIsOffline } from '@oneblink/apps-react'const isOffline = useIsOffline() Copy
import { useIsOffline } from '@oneblink/apps-react'const isOffline = useIsOffline()
This function is a react hook for determining whether an application is in an offline state.
<IsOfflineContextProvider/>
to be present in your component tree.Example