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

Build computed graph from dependencies, rather than properties. #5568

Merged

Conversation

kevinpschaaf
Copy link
Member

Previously, the orderedComputed algorithm started at the element's properties to build the DAG of edges used to sort the computed effects. However, this would miss any undeclared dependencies of computed properties, causing those computed properties to fail to be correctly inserted into the final order.

This change builds the "ready" list of properties from the keys of the computed effects (properties that kick off computed effects) rather than properties, which removes the footgun around undeclared dependencies.

@kevinpschaaf kevinpschaaf force-pushed the legacy-undefined-noBatch-orderedDeps branch from 013133c to 064d0ef Compare July 8, 2019 18:37
@kevinpschaaf kevinpschaaf merged commit 7d3739b into legacy-undefined-noBatch Jul 9, 2019
@kevinpschaaf kevinpschaaf deleted the legacy-undefined-noBatch-orderedDeps branch July 9, 2019 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants