-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
3 comments
on commit 54bcb0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@knownasilya ha that was quick! I'm mostly experimenting right now with this in our app but if it goes well there should be a PR pretty soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking forward to that PR! Really appreciate you taking on some of these changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@knownasilya How would you feel about converting to use the data down action up paradigm? I'm finding that using the lifeCycleHooks is causing a lot of trouble with the older style mutable bindings.
The downside to this is that it would be a breaking change since it would require using the mut helper {{x-toggle toggle=(action (mut "toggledProp"))}}
to maintain two way bindings.
The other issue is non-boolean value bindings. Two options could be a separate event like valueChanged or just allowing users to handle it in an action like
toggle: function(val) {
var newVal = val ? 'on' : 'off';
this.set('somethingElse', newVal);
}
I am also open to trying to keep the existing API working but this issue is making it difficult.
👍