Determine when using cached response (onSuccess is not called when cache is used) #3335
Unanswered
calengbuford
asked this question in
Ideas
Replies: 1 comment
-
why? A For v4, we thought about an extra callback |
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.
-
When successfully fetching a new response, the onSuccess function is called. However, when using the cached response instead, onSuccess is not called. This means if I want to send analytics (or do anything else) upon a successful data change, I can't do that with onSuccess.
It would be great to have a new function that tells me when the cache is used or that tells me when the data is updated. A useEffect to manually do this can be costly for performance.
Beta Was this translation helpful? Give feedback.
All reactions