Getting RangeError: Maximum call stack size exceeded
On the first render, the prefetched data comes correctly (as shown in the react-query tools)
Next React + Query – RangeError: Maximum call stack size exceeded
On the first render, the prefetched data comes correctly ( as shown in the react-query tools )
If I try to refetch/invalidate I get the RangeError message.
So it happens with all the other useFetch I’m using for brevity, I have just mentioned the relevant parts of the code to make it easy to read
Getting an empty object in data for updates
Im working on updating a document in my mongodb, the document has a field, which is an object that has other fields attached to it, I have 1 field i want to update, the others should stay the same, however when i update the one field, it removes all other fields from the document, I read in a different SO article that i need to use dot notation for the specific field i want to update. So im working on that, however i have an interesting issue in that, when i create the dot notated field, all it does is return an empty object to the backend, even though if i console log it right before sending it, its correct.. i dont know why im getting an empty object.
React-query refetchOnWindowFocus is not working in nextJs 12
i have reactjs app version