Skip to content

2.0.0-rc isPending briefly returns false during overlapping updates to an async memo chain #3376

Description

@GabbeV

Describe the bug

Updating a signal twice while its async memo chain is pending makes isPending report true → false → true → false.

Both writes happen before the first false, and no further writes happen when it becomes true again.

Your Example Website or App

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

Steps to Reproduce the Bug or Issue

  1. Wait for the initial load.
  2. Click Run once.
  3. Watch Pending briefly become false before becoming true again.

Expected behavior

Pending should stay true until the replacement update finishes.

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Firefox

Additional context

The same case with longer delays was verified on next at 344ed05 and #3337 at 20f3143.

Replacing the two async memos with one async memo of the same total duration removes the false interval.

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