How can I programatically update a request result with trackRequestResult
?
#517
Unanswered
danielquintero
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an scenario where I need to clear an error which I am tracking with
trackRequestResult
like:Rendering the error message when the API call fails works fine. Then upon a user action, which not necessarily updates (re-triggers) a new http call to refresh the request status in question I need to clear the error message from before. In short I want to be able to update a request result in a similar way that request status allows you to using
updateRequestsStatus
but I do not want to usewithRequestStatus
because I have props beside the entities that also need result tracking.It is also maybe not clear to me when to use request status vs request result, it seems to me like request status allows you for more granularity BUT you are tight to a store entity? so if you were to also host props in your store that are fetched via subsequent API calls how would keep track of those in a way that you can programatically update them?
Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions