Skip to content

Error: Assertion Failed: calling set on destroyed object #4

@jamiechong

Description

@jamiechong

I get this error when the button component was destroyed within the async promise. Pseudocode example:

{{#if someCondition}}
{{em-button default="Submit" on-click="makeAsync"}}
{{/if}}

If, while the async code is running someCondition becomes false the button is destroyed and then I get this error. I suggest doing something in the willDestroyElement event of the Ember Component to avoid this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions