Is it OK to store a Promise in state? #1007
Unanswered
PrasadJayakumar
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a use case where I need to de-duplicate axios call. Just in-case, if multiple components fire the same request concurrently, I prefer to the store the promise and make all the caller wait, until the response is ready.
From this context, my question is Is it OK to store a Promise in state?
Beta Was this translation helpful? Give feedback.
All reactions