Skip to content

Always using let for runes doesn't honor that they support const #1396

Open
@guillaume-mueller

Description

@guillaume-mueller

I haven't looked if the issue is relevant for all runes, but at least for $props, it would be better to declare the properties with const when local mutability is not wanted.

I think it's important because some other frameworks let the user declare with const while the reactive value will still be mutable, so one could think that Svelte doesn't support well const vs let and stick with what is described in the documentation.

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