Skip to content

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

Closed
@gaearon

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.

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