Skip to content

{@const} inside {#key} block #8404

Closed
Closed
@longnguyen2004

Description

@longnguyen2004

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} block

{#key ...}
    {#if true}
        {@const ...}
    {/if}
{/key}

Importance

nice to have

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions