revise revise-this

pull/10951/head
Dominic Gannaway 8 months ago
parent 3683b8e120
commit 63661b028f

@ -45,6 +45,8 @@ export function bind_this(element_or_component, update, get_value, get_parts) {
});
});
// Defer to the next tick so that all updates can be reconciled first.
// This solves the case where one variable is shared across multiple this-bindings.
effect(() => {
return () => {
if (parts && is_bound_this(get_value(...parts), element_or_component)) {

Loading…
Cancel
Save