This would just allow a certain number of toasts to show and if a new toast gets added then it would remove the oldest toast. This may seem like an odd request, but it allows for a cleaner user experience and more viewable space in the app. There has also been times when network outages may cause the API requests to fail and try again multiple times, etc and if toasts are attached to those then they can quickly get filled up and sort of looks like the sky is falling :)
This would just allow a certain number of toasts to show and if a new toast gets added then it would remove the oldest toast. This may seem like an odd request, but it allows for a cleaner user experience and more viewable space in the app. There has also been times when network outages may cause the API requests to fail and try again multiple times, etc and if toasts are attached to those then they can quickly get filled up and sort of looks like the sky is falling :)