Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay toast presentation until Toaster is mounted #120

Open
justinkwaugh opened this issue Jul 26, 2024 · 0 comments
Open

Delay toast presentation until Toaster is mounted #120

justinkwaugh opened this issue Jul 26, 2024 · 0 comments

Comments

@justinkwaugh
Copy link

justinkwaugh commented Jul 26, 2024

Currently if I have an error in a +page.ts load function I might want to show a toast, but I cannot call toast() there because the Toaster component may not yet be mounted. It would nice if calls to toast() prior to Toaster being mounted would be cached and then run onMount within the Toaster component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant