how can I display only one toast at a time? is there a method, for example, to replace the toast?
I don't think there is such a method built-in.
You could set a variable to true when a toast appears and while it's true do not let any other toasts show up. Once the toast dismisses then set it back to false.
You can call M.Toast.dismissAll(); before creating a new toast
Most helpful comment
You can call
M.Toast.dismissAll();before creating a new toasthttp://materializecss.com/toasts.html#dismissal