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

fix: buildLog component set property when component is destroyed #535

Merged
merged 1 commit into from
Feb 28, 2020

Conversation

adong
Copy link
Contributor

@adong adong commented Feb 28, 2020

Context

This is kind annoying when UI faces racing condition: when component is getting destroyed while setting property in the component. See screenshot:

image

Objective

Add !this.get('isDestroyed') && !this.get('isDestroying') to ensure component is present.

References

See other reference:

  1. Cannot update watchers for model after it has been destroyed · Issue #5387 · emberjs/data
  2. Ember Component Property: isDestroyed

I'm actually thinking we should integrate with ember-concurrency slowly.

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

klu909
klu909 previously approved these changes Feb 28, 2020
jithine
jithine previously approved these changes Feb 28, 2020
@adong adong dismissed stale reviews from jithine and klu909 via 048ea18 February 28, 2020 19:14
@adong adong force-pushed the adong/fix-build-log-error branch from 16adc21 to 048ea18 Compare February 28, 2020 19:14
@adong adong merged commit 908e09c into master Feb 28, 2020
@adong adong deleted the adong/fix-build-log-error branch February 28, 2020 20:30
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

Successfully merging this pull request may close these issues.

3 participants