From 76144928a002f58e2ba5dd7c0ba2e731435701d8 Mon Sep 17 00:00:00 2001 From: Gala Date: Thu, 20 Oct 2022 15:19:27 +0200 Subject: [PATCH] adding loading state for gateways --- explorer/src/context/main.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/explorer/src/context/main.tsx b/explorer/src/context/main.tsx index 9255eb20e3..a8db9e270e 100644 --- a/explorer/src/context/main.tsx +++ b/explorer/src/context/main.tsx @@ -109,6 +109,7 @@ export const MainContextProvider: React.FC = ({ children }) => { }; const fetchGateways = async () => { + setGateways((d) => ({ ...d, isLoading: true })); try { const data = await Api.fetchGateways(); setGateways({ data, isLoading: false });