Replies: 1 comment
-
only way I see is to subscribe to the queryCache ( |
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
-
Is there a event hook for listening abort/canceled event when the request get aborted 🤔?
for example, imagine there is a infinite scroll pagination component which provide a list to show items (it will triger
/api/list/:page_num
), and each item component will trying to load details if it in viewport (Yes, there will be another request to fetch/api/details/:id
). we wanna item component can abort request if HTTP request not finished and this item scroll out of viewport (become invisible), also, to get theonAbort
/onSuccess
/onError
event for performance metrics.I did not found the
onAbort
api, andonError
/onSuccess
will be Deprecated. So, is there any recommendations or best practices?BTW, also curious why
onError
/onSuccess
got deprecated 🙏?Beta Was this translation helpful? Give feedback.
All reactions