Skip to content

2.0.0-rc.8 conditional memo reveals a held signal value early #3408

Description

@GabbeV

Describe the bug

A conditional memo starts reading a signal while its update is held by an async memo. Panel shows 1 while Count and Details still show 0.

Your Example Website or App

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

Steps to Reproduce the Bug or Issue

  1. Wait for initialization.
  2. Click Run.
  3. Panel becomes 1 while Count and Details still show 0.

Expected behavior

Panel and Count should agree whenever Panel is visible.

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Firefox

Additional context

Replacing createMemo(() => show() ? count() : "hidden") with a plain getter removes the mismatch.

Possibly related to the held-input reveal rules discussed in #3334/#3370.

Reproduced on next at 14ded24 and #3405 at 323f9ad, in development and production.

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