Closed BayBreezy closed 10 months ago
Hello @xiaoluoboding , Thank you for jumping on this so fast, I appreciate it.
I update the package but i am still having the same issue where calling toast.promise
is still not "awaitable"
In addition, the promise toast is now behaving weird. When I call toast.promise
, it shows 3 layers of toast like in the image below:
This image shows the console statement being logged before the promise is resolved:
Any update?
In latest version: (property) promise: <unknown>(promise: PromiseT<unknown>, data?: PromiseData<unknown> | undefined) => string | number | undefined
Hello,
I was using the package the other day and noticed that using the
promise
method does not allow me to await the results before moving to the next line in the code.I have this function that I use with
vee-validate
. It will send a request to the API. When I use thetoast.promise
method, the line after gets executed immediately.Can this be updated to return a promise please? Thanks. Something like
promise: (promise: PromiseT, data?: PromiseData | undefined) => Promise<string | number>