From 06e76008094e836a6ec32927fc2b0d8b9fd673e2 Mon Sep 17 00:00:00 2001 From: "Rayyan (Rayy)" Date: Tue, 17 Oct 2023 09:22:36 +0000 Subject: [PATCH] Repairs to code --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index f585876..efc8901 100644 --- a/src/App.js +++ b/src/App.js @@ -56,7 +56,7 @@ function App() { const [ fetching , setFetching ] = useState( false ) useEffect( () => { - if( data.length === 0 ) { + if( data.length === 0 && fetching === false ) { readData() setFetching( true ) }