-
-
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
Changes to closure actions' inputs no longer propagate as a change to the action value #14748
Comments
To give a little more context, we only uncovered a single place where we were relying on the old behavior, and the change was easy to work around once we realized what was happening. Given that no one else has reported this since 2.10.1 came out, I suspect from a practical standpoint it wouldn't be a big deal if the new behavior stayed. The reason I filed, though, is that this change seems at odds with the mental model I have for actions as component properties that happen to be functions, and the If thinking of the output from |
The only contract is that @dfreeman sorry if you got tripped up here. Your mental model is correct and I still think useful, however it can be so and still be slightly divergent from the implementation itself. I'm going to close this, but please re-open if you think I've missed something. Thank you! |
In Ember 2.10.0 (and prior), if I had the following template and changed the value of
arg
, thenmy-component
would receive that as an update toprop
— meaningdidUpdateAttrs
would be called, any observers onprop
would execute, and any computeds depending on it would invalidate.In Ember 2.10.1, this no longer happens (I'm guessing as a result of the fix for #14654).
In this twiddle, clicking the button updates the action input and triggers an alert in Ember 2.1.2 through 2.10.0, but doesn't if you update
twiddle.json
to use 2.10.1.The text was updated successfully, but these errors were encountered: