Closed lucgagan closed 1 year ago
@lucgagan if you want to redirect to somewhere with a toast notification you can use: https://github.com/Code-Forge-Net/remix-toast If you want to return the data to frontend and show a notification on the same screen you can just use
const data = useActionData();
useEffect(() => {
if(data){
toast(...)
}
},[data])
but yeah this issue is not related to the library itself it's just a matter of how you implement it so I will close it, but the above approaches will work
Thank you
My use case is that I want to trigger toast after successful action.