my state does not update when i run this code
const [mydata, setMydata]= useState([])
const LoginFunc= async()=>{ await fetch(\'https://thejoblocator.co.uk/api/