Skip to content

Suspense: Incorrect update Behavior if default root node is slotted #5247

Open
@Faberle

Description

@Faberle

Version

3.2.26

Reproduction link

sfc.vuejs.org/

Steps to reproduce

  1. Wrap the suspense component using slots
  2. Use the wrapped suspense component (WSC) to suspend an async root node
  3. Destroy the root node and replace it with a new async root node

What is expected?

The old root node should stay until the new root node is loaded.

What is actually happening?

The old root node is destroyed, before the new root node is loaded.


I wanted to wrap the suspense component to have a default loading / error handling behavior. Which is probably a common thing to do when you are using suspense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions