How to know when a request was triggered by a window focus? #6275
Replies: 1 comment
-
I was able to do so by looking to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello good people,
We are pursuing some performance issues around our platform, and we saw that the feature refetchOnWIndowsFocus were triggering many requests
There's nothing wrong with the library. I want to know when a windows focus triggered the HTTP request, so I can measure it using telemetry to identify the most painful request on my Application., then disable the refetchOnWindowsFocus for those requests.
I've tried to do so on my QueryClient, but that's not precise because not all queries that pass through refetchOnWindowsFocus will reach out to the networking given that some of them could not be stale
How can I do that?
Appreciate your time.
Beta Was this translation helpful? Give feedback.
All reactions