Closed 4Furki4 closed 4 weeks ago
i have the same issue, have you figured out the solution?
nvm, already solved, turns out need to use setTimeout
as the docs say
https://sonner.emilkowal.ski/toast#render-toast-on-page-load
nvm, already solved, turns out need to use
setTimeout
as the docs say https://sonner.emilkowal.ski/toast#render-toast-on-page-load
yes it seems we have to use toaster in a setTimeout. Thanks for letting me know
Describe the feature / bug 📝:
I'm trying to render a sonner toast to show a message when a query parameter changes, specifically watching next-auth errors that are being set to query param like ?error='CredentialsSignin'. I was able to render toast messages using react-toastify with the same code.
Steps to reproduce the bug 🔁:
Here's the code I'm running: