Skip to content

Template literals support for @for tracking function #60751

@JeanMeche

Description

@JeanMeche

@jelbourn got bit by this on today's stream 😄

In comparison, this compiles fine

@for(item of [0, 1,2,3,4,5]; track '') {
}

while this doesn't compile

@for(item of [0, 1,2,3,4,5]; track `${item}`) {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    core: control flowIssues related to the built-in control flow (@if, @for, @switch)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions