Toast behavior inquiry #2650
-
Hi Paste team. Until now I've been using your recommendation on toasts:
I set success toasts to last 6 seconds, and error toast to be closed by the user. However, my team has noticed that error toasts persist across pages (given I'm using a global toaster for the whole app), which I consider a good UX behavior. They suggested me to automatically close all toasts when the user navigates to another page, but that seems odd to me, because in my opinion, the user should acknowledge they was notified of the error. So what should be the behavior for error toasts when the user leaves the page that triggered those toasts? should we persists them or clear them? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That's a great question, and I think your reasoning is perfect. If your error message is important, you should definitely allow people to see and read the error message in their own time. That might especially be significant in single page application, with client side routing. We often might perform a redirect upon or after an error has occurred, and you'd certainly not want to lose that error message just because we navigated you away to where you came from. Obviously there is going to be some nuance in every decision, it probably can't be a blanket rule. Our general guidance is to keep them around until the user dismisses the error, but ultimately you know your user's and specific situation better than we do. Choose what's best for your customer and customer experience. |
Beta Was this translation helpful? Give feedback.
Hi @arodriguezcortes
That's a great question, and I think your reasoning is perfect.
If your error message is important, you should definitely allow people to see and read the error message in their own time. That might especially be significant in single page application, with client side routing. We often might perform a redirect upon or after an error has occurred, and you'd certainly not want to lose that error message just because we navigated you away to where you came from.
Obviously there is going to be some nuance in every decision, it probably can't be a blanket rule. Our general guidance is to keep them around until the user dismisses the error, but ultimately you know your use…