MCPcopy Create free account
hub / github.com/TanStack/db / handleOffline

Function handleOffline

examples/electron/offline-first/src/components/TodoList.tsx:25–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 executor.notifyOnline()
24 }
25 const handleOffline = () => setIsOnline(false)
26
27 window.addEventListener('online', handleOnline)
28 window.addEventListener('offline', handleOffline)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected