-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Tracked Props - Prevents autotracking ArrayProxy creation
This PR prevents an issue with immediate invalidation within the new autotracking transaction. ArrayProxy currently reads from one of its own properties, `hasArrayObservers`, and then immediately updates it with `notifyPropertyChange`. We avoid this by using a native descriptor instead of a computed, and not using `get()` to access it. This way, nothing is tracked during creation (even if it is mutated).
- Loading branch information
Chris Garrett
committed
Nov 21, 2019
1 parent
d38232f
commit 1f67007
Showing
4 changed files
with
41 additions
and
13 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
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