Skip to content

Infinite loop in Suspense and Lazy #4933

@HuJean

Description

@HuJean

When using lazy to get dynamic content with catch and no return, the render will fall into an infinite loop.

https://stackblitz.com/edit/vitejs-vite-9vutnzcz?file=src%2Fapp.jsx

After a simple breakpoint, the error occurred in code in Lazy would throw error and catch by diff.

Image Image

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