I think you might want to change the dependency, so the computed property updates when the `vetoed` status of any of the contributions changes.
```suggestion
kreditsByContributor: computed('contributionsUnconfirmed.@each.vetoed', 'contributors', function() {
```
raucao
(Migrated from github.com)
reviewed 2019-05-08 09:45:19 +00:00
Yes, it will also update when the array itself changes (e.g. elements added or removed). If you want to add additional properties as dependencies, you would add them like this contributionsUnconfirmed.@each.{vetoed,otherProperty}.
Yes, it will also update when the array itself changes (e.g. elements added or removed). If you want to add additional properties as dependencies, you would add them like this `contributionsUnconfirmed.@each.{vetoed,otherProperty}`.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
closes #114
LGTM!
Just left one comment. The rest looks good to me.
@@ -45,19 +45,34 @@ export default Service.extend({});}),I think you might want to change the dependency, so the computed property updates when the
vetoedstatus of any of the contributions changes.@@ -45,19 +45,34 @@ export default Service.extend({});}),Cool. Will that still account for new and deleted objects in the collection, and changes of other properties?
@@ -45,19 +45,34 @@ export default Service.extend({});}),Yes, it will also update when the array itself changes (e.g. elements added or removed). If you want to add additional properties as dependencies, you would add them like this
contributionsUnconfirmed.@each.{vetoed,otherProperty}.