Update packages/svelte/src/internal/client/render.js

pull/9617/head
Simon H 3 years ago committed by GitHub
parent 18416b8a42
commit 9eb3f9b8a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1233,6 +1233,7 @@ export function bind_this(element_or_component, update, binding) {
update(element_or_component);
render_effect(() => () => {
// 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.
render_effect(() => {
untrack(() => {
if (!is_signal(binding) || binding.v === element_or_component) {

Loading…
Cancel
Save