Skip to content

signal created fromStore with a derived loses reactivityΒ #14780

@leonidaz

Description

@leonidaz

Describe the bug

When you use a fromStore and a derived from it, the signal created with fromStore loses reactivity.

It looks like, the compilation is different (JS Output tab).

with derived:

const count = fromStore(countStore);

without derived defined:

const count = $.mutable_state(fromStore(countStore));

Reproduction

Reproduction

Try commenting out the derived and the counter works

Logs

No response

System Info

playground

Severity

annoyance

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