Skip to content

Caching with parent/children multiple levels #511

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

Merged
merged 2 commits into from
Mar 5, 2023

Conversation

bazubii
Copy link
Contributor

@bazubii bazubii commented Feb 21, 2023

When caching, switch children and parents to dummy references. Switch back when un-caching. Simplify setting parent/child releationships.

… back when un-caching. Simplify setting parent/child releationships.
# If no parent, mark that the component has its children set.
# This works because the nested (internal) components get rendered first before the parent,
# so once we hit a component without a parent we know all of the children have been rendered correctly
# TODO: This might fall apart with a third layer of nesting components
Copy link
Owner

@adamghill adamghill Feb 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might fall apart with a third layer of nesting components

😂

@adamghill
Copy link
Owner

Thanks for digging into this. First glance looks good, I should be able to test in detail over the next few days!

@adamghill
Copy link
Owner

Sorry this took so long, this looks good. I'm going to merge it in and bump the version soon.

@adamghill adamghill merged commit 37b94fa into adamghill:main Mar 5, 2023
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