Skip to content

Solid v2.0.0-beta.10 refresh refreshes all derived signals all the way up #2691

@maciek50322

Description

@maciek50322

Describe the bug

refresh refreshes all derived signals all the way up

const [original, setOriginal] = createSignal(0);
const [derived1, setDerived1] = createSignal(original);
const [derived2, setDerived2] = createSignal(derieved1);
...
refresh(derived2) // refreshes derived1 too, but should only refresh derived2

Your Example Website or App

https://s.olid.uk/id/bCo2JDbPSDuPHwd6PfyLeA

Steps to Reproduce the Bug or Issue

  1. Go to link
  2. Click "Refresh2" button
  3. See that not only derived2 has changed but derived1 too, both to the original value

Expected behavior

Only derived2 should be changed to the value of derived1, the derived1 shouldn't refresh / change it's value.

Screenshots or Videos

No response

Platform

  • OS: Windows 10
  • Browser: Chrome
  • Version: Solid v2.0.0-beta.10

Additional context

No response

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