How to log error from react query?
Hi, I have some problem after migrating to v4 from v3.
I checked that react query didn't make any requests (by user's chrome dev tool network tab) without any error log.
First, I added code that did not uses react query for the GET request, and unlike react query, it works fine.
This issue was reported from our service users but sadly only some users have this problem and I can't reproduce it 😠(reported OS was window&mac, browser was chromium browser like edge and chrome.)
Every user says there is no error in console and it works well in safari browser.
Also they says, after a few hours, it works well in chrome too.
I have no idea about this weird thing because there wasn't any error in user's browser console.
Secondly, I update to latest version (4.0.10 -> 4.16.1) but it was not a solution.
I found this post (https://stackoverflow.com/questions/73091703/react-query-not-making-the-requests) too, it was almost same situation (not making request, no error) as my issue but there is no syntax problem (same as that post) in my code.
Now I finding for why react query didn't log anything.
Is there any way to log error from react query?
Stack Overflow
React-query not making the requests
After doing some research on why I'm getting an undefined I noticed that no requests are being executed for some reason (chrome, "Network" tab shows no requests made to /admin/cafes).
At ...
0 Replies