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

prune #4708

Merged
merged 19 commits into from
Jul 9, 2024
Merged

prune #4708

merged 19 commits into from
Jul 9, 2024

Conversation

willmcgugan
Copy link
Collaborator

@willmcgugan willmcgugan commented Jul 5, 2024

Hopefully more reliable pruning of DOM nodes.

When a node is removed, it requests that it's children are removed, before sending itself an Unmount message.

@willmcgugan willmcgugan merged commit 4da3c3a into main Jul 9, 2024
20 checks passed
@willmcgugan willmcgugan deleted the prune branch July 9, 2024 10:18
@@ -262,7 +262,7 @@ def remove_items(self, indices: Iterable[int]) -> AwaitRemove:
for index in indices:
items_to_remove.append(items[index])

await_remove = self.app._remove_nodes(items_to_remove, self)
await_remove = items.remove()

Choose a reason for hiding this comment

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

I believe this changes the behavior of this functions to removing all ListItems instead of the ones at the specific indices.

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.

3 participants