Skip to content

Nested <Suspense> boundaries do not work with useTransition #24759

@jezzgoodwin

Description

@jezzgoodwin

React version: 18

Steps To Reproduce

  1. Create a component tree which contains nested <Suspense> boundaries
  2. Reveal this component tree using useTransition

Link to code example: https://codesandbox.io/s/inspiring-wind-1bedy7

The current behavior

useTransition waits for the first Suspense boundary to be ready and then reveals showing the nested Suspense boundary still in its fallback state.

The expected behavior

useTransition should wait for the entire tree to be ready before revealing

Thanks React team for the great work by the way!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions