Skip to content

2.0.0-rc.8 isPending reports false for a held synchronous memo #3413

Description

@GabbeV

Describe the bug

A signal feeds a synchronous identity memo, which feeds an async memo. While the update is held, isPending(count) is true but isPending(copy) is false. Both still display their old value.

Your Example Website or App

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

Steps to Reproduce the Bug or Issue

  1. Wait for initialization.
  2. Click Run.
  3. Count pending becomes true, while Copy pending stays false until all three values become 1.

Expected behavior

Copy pending is also true while its changed value is waiting to reveal.

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Firefox

Additional context

Reproduced on next at 14ded24, #3337 at 20f3143 and #3405 at 323f9ad.

Replacing the identity memo with a plain getter makes both indicators report true. This uses an ordinary signal and separate pending reads, unlike #3409.

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