Skip to content
Discussion options

You must be logged in to vote

This isn’t possible as that behaviour is core to the React paradigm, if you’re rendering a toast within Dialog.Content it will become unmounted when its parent is removed from the tree.



It’s fairly common to create an abstraction that can be used to render toasts in a different part of the tree for example.

Do you have an example of your code you could share? we might be able to suggest some approaches to make this easier to manage.



Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by abhic91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants