it is posible to handle errror in toast.promise in other way than throwing new error [throw new Error("MESSAGE")] in async function?
i have toast with promise function where i am deleting user, if i have error in server function i wanna have error variant of toast, it is possible with throwing error but it also give it in console etc.
Describe the feature / bug 📝:
it is posible to handle errror in toast.promise in other way than throwing new error [
throw new Error("MESSAGE")
] in async function?i have toast with promise function where i am deleting user, if i have error in server function i wanna have error variant of toast, it is possible with throwing error but it also give it in console etc.
function in client component
server action function
stupid sollution
it works but it pretty goofy
it is the best solution but also very goofy and long...