Skip to content

Toasts occassionally double-fire #126

@seinwave

Description

@seinwave

This is because the connect() method in the toast_controller is firing twice. For somewhat mysterious reasons. You have tried:

❌ Catching the turbo preview (none of the connections are from turbo previews!)
❌ Debouncing the addToast method (didn't work, because we're firing the connect() method in a different instance each time)
❌ Counting / restricting the number of flash requests (there's only one!)

Something else to try:

  • Looking for an existing instance of the toast_controller, and not firing connect() if it already exists. Not sure how to do it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions