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

ERROR - Dismiss not working #63

Open
ishaiavrahami opened this issue Mar 31, 2024 · 3 comments
Open

ERROR - Dismiss not working #63

ishaiavrahami opened this issue Mar 31, 2024 · 3 comments

Comments

@ishaiavrahami
Copy link

The dissmiss function is not working and breaking the toaster. This is the code im running. Very simple.

toast.dismiss(toastId)

and its returning

Uncaught (in promise) Maximum recursive updates exceeded in component . This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.

Screenshot 2024-03-31 at 6 21 01 PM
@ishaiavrahami
Copy link
Author

@xiaoluoboding please see this has it breaks the code. New toasts WONT work

@Froelund
Copy link

I have this same issue 🖐️
Minor difference in my implementation, but the error is similar.

const toastId = toast('Event', { duration: 10000 });
toast.dismiss(toastId)

@ishaiavrahami
Copy link
Author

@Froelund its ridiculous. i fixed this by emitting emit('closeToast') inside the 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

2 participants