Skip to content

Solid 2: presence read on async derived store stays blank after resolution #3726

Description

@GabbeV

Describe the bug

An in expression on a derived createStore stays blank after its pending source resolves. A sibling expression reading the source signal updates to resolved, but the presence expression neither shows present nor missing.

The component returns a pending promise from the store derivation, then sets the source signal to [1] and resolves that promise with [1] in the same timer callback. The read is inside <Loading>, which has finished showing its fallback.

Your Example Website or App

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

Steps to Reproduce the Bug or Issue

  1. Open the playground and click Build.
  2. Wait for Source: resolved.
  3. Observe that Presence: has no value.

Expected behavior

Presence: present. The derived store has resolved to [1], and length exists on that array.

Platform

  • OS: Linux
  • Browser: Chromium 153.0.8010.12
  • Solid: 2.0.0-rc.13

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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