Web
Is Online
Reactive browser online status.
createIsOnline()
Reactive browser online status. On the server, get() and the SSR snapshot
are true.
Examples
Vanilla
import { } from 'seitu/web'
const = ()
.( => {
.( ? 'online' : 'offline')
})
.(.())React
import { } from 'seitu/web'
import { } from 'seitu/react'
const = ()
function () {
const = ()
return ? 'Connected' : 'Disconnected'
}Edit on GitHub
Last updated on