Skip to content

stores / observables can't be used as reactive declarations #2579

@cdock1029

Description

@cdock1029

See: https://svelte.dev/repl?version=3.1.0&gist=478580926063e8de3e4dec7908d40e9e

Simple example, de-referencing either of these results in undefined

$: rx = of(['x','y','z'])

$: store = writable(['store'])
{#each $rx as r}
<p>{r}</p>
{/each}

{#each $store as s}
<p>{s}</p>
{/each}

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