Skip to content

Bug: Nested useTransition makes isPending of outer one always false #26226

Closed

Description

@gaearon

Nested startTransition call "takes over" and makes parent startTransition unable to track isPending.

Seb says it's a bug.

Repro:

https://codesandbox.io/s/pensive-breeze-rg70wn?file=/IndexPage.js:192-288

  1. Click the button
  2. isPending in IndexPage.js is true

However, isPending in App.js is false.

Expected: isPending in App.js is also true.

Activity

  1. changed the title [-]Bug: nested useTransition makes isPending of outer one always false[/-] [+]Bug: Nested useTransition makes isPending of outer one always false[/+] on Feb 24, 2023
  2. added 2 commits that reference this issue on Feb 25, 2023
    f0d9fe1
    362a4f2
  3. added 3 commits that reference this issue on Mar 16, 2023
    603ec7a
    4017121
    8f3c45b
  4. added a commit that references this issue on Mar 16, 2023
    05777ff
  5. added a commit that references this issue on Mar 16, 2023
    5e1c596
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions