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

Remove extra destroyTree call #4151

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions packages/alpinejs/src/mutation.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { destroyTree } from "./lifecycle"

let onAttributeAddeds = []
let onElRemoveds = []
let onElAddeds = []
Expand Down Expand Up @@ -177,8 +175,6 @@ function onMutate(mutations) {
if (addedNodes.has(node)) continue

onElRemoveds.forEach(i => i(node))

destroyTree(node)
}

// Mutations are bundled together by the browser but sometimes
Expand Down
Loading