function getCharacter(){
fetch("http://localhost:8001/tinder-card").then((resp)=>resp.json()).then((result)=>{
if(result.status==false){
alert("No card found in database")
}
else{
setpeople(result)
}
})
}
useEffect(()=>{
getCharacter();
})
This is my react code where I am fetching user data from the node API everything is working fine but when i see my browser network tab fetch api is keep requesting on a loop and this is making my computer freeze how can i solve this?