Replies: 1 comment 6 replies
-
Repeat only tracks changes in the array itself. It does not handle changes to properties on the items in the array. Those individual properties need to be either |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have a custom element inheriting from FASTElement that is using a template to render. The template iterates over an internal array of the class, this array contains a list of objects.
When I add new objects to the array, the view updated correctly, but when I update an attribute of one of the existing elements in the array the view doesn't change.
I've tried the "splice" method of updating the array, according to the documentation but the
repeat
directive doesn't seem to pick it up.I've additionally set up an Observable on that array, and when I update the property, the callback does get triggered, but
repeat
seems to ignore it.Here is the template I'm using, the className property is not getting updated.
How can I trigger the update on the
repeat
directive?Beta Was this translation helpful? Give feedback.
All reactions