Javascript – How to stop awaiting and exit exceution of a function while api calls?
Here i have a fuction that update the data async function update() { try { const res = await axios.post('update', { data: '123' }) //This response may be delayed navigate(previousScreen) } catch (error) { //handle error } } Everything works…