How to create a global toast component?
Just create a Toast that is in your main Application and get a "ref" to it and use that Ref to call the Toast.
I do something similar in my app. I use library called use-between so I can store that ref in a shared hook that I can use anywhere in my app. Check out use-between its simple and slick.
I do something similar in my app. I use library called use-between so I can store that ref in a shared hook that I can use anywhere in my app. Check out use-between its simple and slick.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests