Skip to content

2.0.0-rc.8 isPending stays false while an async memo loads an optimistic value #3379

Description

@GabbeV

Describe the bug

With two async memos downstream of an optimistic value, isPending stays false while loading the optimistic update. It correctly becomes true during the revert.

Your Example Website or App

https://s.olid.uk/id/oQ6V-U3oTRyzeG7Pm_rVYA

Steps to Reproduce the Bug or Issue

  1. Wait for initialization.
  2. Click the button.
  3. Pending stays false until the view becomes 1 / 1.
  4. During the revert, Pending correctly becomes true.

Expected behavior

Pending is also true while loading the optimistic value.

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Firefox

Additional context

Bypassing the async copy memo and reading value() directly in the delayed memo makes the indicator work correctly.

Reproduced against next at 344ed05 and #3337 at 20f3143.

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