Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX beta] Prevent infinite cycles from lazy computed computation #18406

Merged
merged 1 commit into from
Sep 18, 2019

Conversation

pzuraq
Copy link
Contributor

@pzuraq pzuraq commented Sep 18, 2019

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants