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

Main algorithm #13

Closed
cgrand opened this issue May 12, 2019 · 0 comments
Closed

Main algorithm #13

cgrand opened this issue May 12, 2019 · 0 comments

Comments

@cgrand
Copy link
Owner

cgrand commented May 12, 2019

Reminder: template is to component what class is to object.

  1. Retrieve all queries from the template hierarchy
  2. Instantiate the root component (technical root component no matching DOM)
  3. Run queries derivatives, for each upsert row, traverse the component tree until matching (key-wise) component is found
    1. If found, update the component
    2. If not found, instantiate all missing components (using children template information from the last traversed component)
  4. for each delta row, traverse the component tree until matching (key-wise) component is found and remove it (retract state entity too)
@cgrand cgrand changed the title Summary algorithm Main algorithm May 12, 2019
@cgrand cgrand closed this as completed May 29, 2019
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

No branches or pull requests

1 participant