How to show success/error message from api response in toast.promise #268
Replies: 2 comments 1 reply
-
You can pass a function to error or success option, e.g.:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Closing discussion. |
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
-
Using
toast.promise
, how can I show success/error message from api response instead of a hardcoded message in the toasterBeta Was this translation helpful? Give feedback.
All reactions