Stop rereading provider snapshots while loading

This commit is contained in:
Mohamed Boudra
2026-05-26 11:35:20 +07:00
parent 6f16900b8a
commit bde0efc9b0
2 changed files with 9 additions and 19 deletions
@@ -85,14 +85,6 @@ export function useProvidersSnapshot(
generatedAt: message.payload.generatedAt,
requestId: "providers_snapshot_update",
});
const shouldRefetch = message.payload.entries.some((entry) => entry.status === "loading");
if (shouldRefetch) {
void queryClient.invalidateQueries({
queryKey: updateQueryKey,
exact: true,
refetchType: "active",
});
}
});
}, [client, enabled, isConnected, queryClient, serverId, supportsSnapshot]);