skip to Main Content

Mongodb – Infinite XHRhttpRequest in ReactJS

Let's start with the client side, here's the code //sender function const getUserMessages = async () => { try { //new localhost with 'messages' const response = await axios.get('http://localhost:8000/messages', { params: {userId: userId, correspondingUserId: clickedUserId} }) setUserMessages(response.data) } catch (error){…

VIEW QUESTION
Back To Top
Search