Possible to update state within a toast.promise loading message? #287
Unanswered
CodyCodes95
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
-
Hello! I am using toast.promise to run a long request which processes a bunch of records. Example:
processedCount is state which is being updated within the generateAllGeocodeData function on each loop. However, for the entirety of the promise, the message just reads "Processed 0 of (whatever the count is)"
How can I have the state in the loading message update?
Beta Was this translation helpful? Give feedback.
All reactions