-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Updating a bound property of a component triggers observers for all bound properties of the component #11491
Comments
I have exactly the same issue! http://discuss.emberjs.com/t/ember-1-13-attrs-call-property-change-on-all-observers/8212 |
I am having the same issue. is there any work around for this? |
this is a regression, likely caused by the attrs proxy (or related attrs code). |
@stefanpenner - Exactly, I agree it is almost certainly related to the attrs proxy. A little background from a prior spelunking: any time an attribute is changed, we set the entire |
yes, this new code has issues in 2 phases.
|
seeing same issue |
also seeing this issue. Ember 1.13 - initialization of component causes observer to fire and observers fired twice everytime a bound property is changed: |
Hi, I noticed this too. Also, in the
Here, the bound Here's some examples |
Thanks for providing all these demos/examples, it definitely made it easy to confirm things were fixed here. The double observer firing issue was resolved by #11946. @rounders - Updated JSBin with current release branch, double firing observers are solved. @tehmaestro - Your example seems unrelated to this issue (since its about double firing observers), but does seem to be a legitimate issue on its own. Can you report separately? @vvisheshd - Your JSBin works properly (only fires once) with the latest release builds. @laynegt - Your JSBin works properly on the latest release builds. |
Thanks for the fix. Opened issue #11967 |
This is in 1.13. I have a component with several bound properties from a controller. I also have observers on these properties inside the component. When any of the properties are updated in the controller, the observers for all of the bound properties are fired (in the component, twice).
Example: http://emberjs.jsbin.com/hicowe/edit?html,js,console,output
A and B are bound to properties in the controller. C is an internal property to the component only.
The text was updated successfully, but these errors were encountered: