-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Closed
Copy link
Description
Describe the bug
#11399 tracked faulty ownership_invalid_binding errors.
This was fixed for 5.0.0.next.121 in #11401.
Something in 5.0.0.next.123 broke it again, specifically inside #if blocks. (Probably 6e5ab2e ?)
The only thing I changed from @Rich-Harris's reproduction from #11399 was wrapping a dummy #if around the children:
<Outer>
{#if true}
<Inner bind:object />
{/if}
</Outer>"%c[svelte] ownership_invalid_binding\n%cOuter.svelte passed a value to Inner.svelte with
bind:, but the value is owned by App.svelte. Consider creating a binding between App.svelte and Outer.svelte"
Reproduction
Logs
No response
System Info
System:
OS: macOS 14.4
CPU: (10) arm64 Apple M1 Max
Memory: 6.04 GB / 64.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 10.5.0 - ~/Library/Application Support/Herd/config/nvm/versions/node/v18.20.2/bin/npm
pnpm: 7.21.0 - /opt/homebrew/bin/pnpm
bun: 1.1.7 - /usr/local/bin/bun
npmPackages:
svelte: 5.0.0-next.123 => 5.0.0-next.123Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels