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

keep toast alive #32

Open
iraizo opened this issue Apr 6, 2023 · 4 comments
Open

keep toast alive #32

iraizo opened this issue Apr 6, 2023 · 4 comments

Comments

@iraizo
Copy link

iraizo commented Apr 6, 2023

I currently have the toaster element inside +layout.svelte, but as soon as i change the window location the toast dissapears, is there a way to fix that?

@kbrgl
Copy link
Owner

kbrgl commented Apr 6, 2023

Could you link a repo/CodeSandbox/REPL that reproduces this problem?

@kbrgl
Copy link
Owner

kbrgl commented Apr 6, 2023

I imagine this is expected, and strategies to fix this would probably revolve around some kind of persistence of state across page transitions.

@iraizo
Copy link
Author

iraizo commented Apr 7, 2023

I imagine this is expected, and strategies to fix this would probably revolve around some kind of persistence of state across page transitions.

i guess so, but it could be cool to do somehow

@juslin03
Copy link

@iraizo
If i got what you mean, it must be a possibility of displaying the toast even if we navigate to another page ?

You could maybe add a duration property in the options as in this screenshot,
code-svelte-duration-toast

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

3 participants