Toasts, also known as snackbar, is a system for notifications within an application.
- A parent component that holds multiple notifications
- The individual notification as a single entity (that shows text/icons/actions/etc)
- The “state management” that you send data to. When you add data to the queue it will display a notification. We are adding data to the queue for all sorts of events that occur on the platform as you’ve seen - when you send notifications is really endless.
Reflections
Things like timing, styling, where the notifications display, etc are all variables you can play with. There are third-party libraries you can bring into your code to handle most of it for you. Something like this: https://www.npmjs.com/package/react-toastify or https://getbootstrap.com/docs/4.2/components/toasts/ [For Mythos], you’ll need to store subscriptions for each user and each page that user wants to listen to. Then when changes are made run a script to send out notifications. And you’d need to have some sort of system to recognize if they are online to see the message." ~ 📝Alex King
References
Creators
- 🏷️#citizensofone (See: 📝Citizens of One)
- 🏷️#grantnestor (See: 📝Grant Nestor)
- 🏷️#alexking (See: 📝Alex King)
