-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Of course, it'd be nice to eliminate the need for triggerUpdate at all, but in lieu of a better solution, this flag should probably at least be moved into its own separate attribute....This needs some thought though. On one hand, chartData may be a computed property, in which case it'd be a little weird to incorporate another dependent key into its calculation to toggle this, and it'd be bad to mess with the property after its been computed (violates 'pure function' assumption of CPs). On the other hand, the part of the code that's generating the data is the part that's most likely to be signaling that an update is needed, and it may only have a reference to the chartData object...
| _triggerUpdate: observer('chartData.triggerUpdate', function() { |
Metadata
Metadata
Assignees
Labels
No labels