Skip to content

Handling state changes with toast #1132

Answered by TheSisb
bvsillorequez asked this question in Q&A
Discussion options

You must be logged in to vote

Hi again @bvsillorequez,

Is there a way to change the state management with useToaster? IE make it a singleton or have an override And if I am missing something completely and this isn't possible, can you explain why? And next steps?

So we spoke about this at length internally and right now the best thing for you to do, as a Console product team, is to build your own state management for Toasts. You'll also get full control of what (re-)renders and will be able to handle message passing with Console's Navigation bundle. If you look at this example: https://paste.twilio.design/components/toast#adding-a-toast useToaster is where all the state management lives. You will still be able to us…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@bvsillorequez
Comment options

@TheSisb
Comment options

@bvsillorequez
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@katieporter
Comment options

@bvsillorequez
Comment options

Answer selected by katieporter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants