Skip to content

Memo-wrapped isPending disagrees with a direct read #3457

Description

@GabbeV

Describe the bug

isPending(copy) shows true during an update, but createMemo(() => isPending(copy)) stays false for the same memo.

Your Example Website or App

https://s.olid.uk/id/Oc33xk4UTU-KP0DifyoqhA

Steps to Reproduce the Bug or Issue

  1. Wait for initialization.
  2. Click Run.
  3. While Slow is pending, Direct pending shows true but Memo pending shows false.

Expected behavior

Both pending reads should show true while the update is held.

Screenshots or Videos

No response

Platform

Compiled JSX in jsdom, production build.

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