Skip to content

Async conditional memo stops reflecting its still-published branch #3461

Description

@GabbeV

Describe the bug

While B is held at 0, updating A to 1 leaves Selected showing 0. Selected is b() ? b() : a(), so it no longer agrees with the displayed inputs.

Your Example Website or App

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

Steps to Reproduce the Bug or Issue

  1. Wait for initialization.
  2. Click Run.
  3. After half a second, A shows 1, B shows 0, and Selected still shows 0.

Expected behavior

Selected should remain consistent with the published inputs. If A publishes 1 while B is 0, Selected should show 1; holding the overlapping updates together would also preserve consistency.

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Firefox

Additional context

Reproduces on next at 0d8347a.

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