An opinionated toast component for React.
Ensure on dismiss callback fires properly (#645)
Emil Kowalski3390bfef5b51
diff --git a/src/index.tsx b/src/index.tsxindex 8391f25..5c0e9aa 100644--- a/src/index.tsx+++ b/src/index.tsx@@ -236,6 +236,7 @@ const Toast = (props: ToastProps) => {React.useEffect(() => {if (toast.delete) {deleteToast();+ toast.onDismiss?.(toast);}}, [deleteToast, toast.delete]);