diff --git a/src/contexts/W3iContext/hooks/notifyHooks.ts b/src/contexts/W3iContext/hooks/notifyHooks.ts index 081a170b..556b9d40 100644 --- a/src/contexts/W3iContext/hooks/notifyHooks.ts +++ b/src/contexts/W3iContext/hooks/notifyHooks.ts @@ -49,11 +49,15 @@ export const useNotifyState = (w3iProxy: Web3InboxProxy, proxyReady: boolean) => // it takes time for handshake (watch subscriptions) to complete // load in progress state using interval until it is useEffect(() => { - if (notifyClient?.hasFinishedInitialLoad()) { - setWatchSubscriptionsComplete(true) + if(watchSubscriptionsComplete) { + return noop; } // Account for sync init const intervalId = setInterval(() => { + if (notifyClient?.hasFinishedInitialLoad()) { + setWatchSubscriptionsComplete(true) + return noop; + } refreshNotifyState() }, 100)