Open
Description
Version
3.2.26
Reproduction link
Steps to reproduce
- Wrap the suspense component using slots
- Use the wrapped suspense component (WSC) to suspend an async root node
- 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.