Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Suspense does not include async components when hydrating #6638

@danielroe

Description

@danielroe

Vue version

3.2.39

Link to minimal reproduction

https://stackblitz.com/edit/github-fktkzl-2bccdr

Steps to reproduce

  1. Load the app with npm run dev if it does not auto-start, looking at the browser console log.

  2. Press the 'Trigger suspense' button

What is expected?

I expect both in the initial hydration and in the subsequent suspense invocation for suspense not to have resolved by the time the async child component runs its setup.

What is actually happening?

In the initial hydration of the app, <Suspense> does not include child components within its cloak of suspense.

System Info

No response

Any additional comments?

No response

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