-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
{@const}
inside {#key}
block
#8404
Comments
{@const}
inside {#key}
block
I second the move. Example use case: {#key active} |
This is allowed in Svelte 5 |
Doesn't seem like it is allowed in Svelte 5, I'm still getting the same error |
Closed by #15377 |
Closed by #15377 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem
Since the current
{#key}
block operates like a 1-element{#each}
block, it should make sense to allow using{@const}
inside of{#key}
as well.Describe the proposed solution
Allow the usage of
{@const}
inside{#key}
Alternatives considered
Use a dummy
{#if true}
blockImportance
nice to have
The text was updated successfully, but these errors were encountered: