mirror of
https://github.com/reiyua/RaysBookClub.git
synced 2026-01-20 15:37:47 +00:00
Repairs to code
This commit is contained in:
parent
ffa951936e
commit
06e7600809
1 changed files with 1 additions and 1 deletions
|
|
@ -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 )
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue