You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
totalQuantity will compute correctly on the first render, but if a new item is added to the collection, or if a quantity changes, it will not recompute.
Composing array macros breaks the chain of observed properties. For example:
totalQuantity
will compute correctly on the first render, but if a new item is added to the collection, or if a quantity changes, it will not recompute.The solution is to use an intermediate property:
Or don't compose:
But that's lousy. 😄 Is there any way to preserve the chain when composing macros like this?
The text was updated successfully, but these errors were encountered: