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

fix: bail-out of event delegation for each block reference #9446

Closed
wants to merge 1 commit into from

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Nov 14, 2023

Tune event delegation so we bail-out when referencing each block bindings.

Fixes #9400.

Copy link

changeset-bot bot commented Nov 14, 2023

🦋 Changeset detected

Latest commit: 88152d8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Nov 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-5-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2023 1:21pm

@Rich-Harris
Copy link
Member

This takes us from an incorrect error message to silent failure, which is probably a step backwards?

I still think that in runes mode, direct assignments to the each block context should be compile-time errors, and property assignments should be checked for effects in dev mode

@trueadm trueadm closed this Nov 17, 2023
@trueadm trueadm deleted the fix-event-delegation branch November 17, 2023 14:00
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.

Svelte 5: Error: x is not defined
2 participants