Repairs to code

This commit is contained in:
Ray 2023-10-17 09:22:36 +00:00 committed by GitHub
parent ffa951936e
commit 06e7600809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ function App() {
const [ fetching , setFetching ] = useState( false ) const [ fetching , setFetching ] = useState( false )
useEffect( () => { useEffect( () => {
if( data.length === 0 ) { if( data.length === 0 && fetching === false ) {
readData() readData()
setFetching( true ) setFetching( true )
} }