-
-
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 beta] Prevent infinite cycles from lazy computed computation
Lazy computed chaining can sometimes lead to infinite cycles that, if a computed property setup has a natural cycle that leads back to the original CP which is finishing its chains. Ensuring the cache and revisions are set _before_ we finish chaining prevents this. Also moves the `set` into the set block, so we don't reset the value if we're returning from cache. (cherry picked from commit ca22291)
- Loading branch information
1 parent
a920922
commit 8c8e916
Showing
2 changed files
with
25 additions
and
4 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