feat: add network health monitoring for offline detection

This commit is contained in:
Ashis Kumar Naik 2025-07-02 08:24:53 +05:30
parent afbafc4374
commit 8ee9a5b6e0

View File

@ -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...",