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: prevent nullish snippet for rendering empty content #13083

Merged
merged 7 commits into from
Sep 5, 2024
Merged

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Aug 30, 2024

Fixes #12999.

If the snippet function is nullish and not a chain expression we now throw an error to have parity with non-dynamic references.

Copy link

changeset-bot bot commented Aug 30, 2024

🦋 Changeset detected

Latest commit: a241a5a

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

@WarningImHack3r
Copy link

Typo man here again, shouldn't you backtick `null` and `undefined` in the error bodies?

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.

No error for @render undefined if snippet function is state
5 participants