mirror of
https://github.com/logos-messaging/OpChan.git
synced 2026-01-09 16:23:09 +00:00
feat: add network health monitoring for offline detection
This commit is contained in:
parent
afbafc4374
commit
8ee9a5b6e0
@ -56,6 +56,10 @@ export const initializeNetwork = async (
|
||||
setError: (error: string | null) => void
|
||||
): Promise<void> => {
|
||||
try {
|
||||
// First hydrate from IndexedDB for instant UI
|
||||
await messageManager.hydrateFromStorage();
|
||||
updateStateFromCache();
|
||||
|
||||
toast({
|
||||
title: "Loading data",
|
||||
description: "Connecting to the Waku network...",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user