Skip to content

ReferenceError: data is not defined #2943

Closed
@pateketrueke

Description

@pateketrueke

Using let:data from a custom component, and then using data inside a loop along with <select bind:value={anything}> tries to wipe-out data too!

See the example on the REPL: https://svelte.dev/repl/a05cc3a759f341479b56a944d60d4b20?version=3.4.4

Invalidation calls are:

$$invalidate('selected', selected);
$$invalidate('data', data); // `data` is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions