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 ) }