-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Fix reactivity of dynamic attributes
The updates to use autotracking through the VM resulted in a bug in dynamic attributes. Previously, the updating opcode for dynamic attributes would run its update function based on tags/autotracking - whenever any tag updated (e.g. a tracked value was changed) the attribute would call its `update` function. The `update` function would then check the new value against the current value of the attribute, and update if they were different. The bug was we introduced a value comparison in the updating opcode itself, based on the last value of the property to set the attribute to. This meant that if the property was updated to the same value twice in a row, it would not call `update`, even if the attribute's value had changed (e.g. because the user typed something).
- Loading branch information
Chris Garrett
committed
Feb 12, 2021
1 parent
ebd95ed
commit 988a21e
Showing
3 changed files
with
58 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters