toast.promise loading as ValueOrFunction<Renderable, T> #129
TastyDucks
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The current API for
toast.promise
allows functions to return a value for success or error messages -- it would be nice to be able to do the same for the loading message.Example use case: updating the progress of an upload, e.g:
This would change the Type signature from
loading: Renderable
to
Beta Was this translation helpful? Give feedback.
All reactions