Skip to content

<slot> in <Suspense> will cause an error #13453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tarocch1 opened this issue Jun 9, 2025 · 0 comments · May be fixed by #13456
Open

<slot> in <Suspense> will cause an error #13453

Tarocch1 opened this issue Jun 9, 2025 · 0 comments · May be fixed by #13456
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. scope: suspense

Comments

@Tarocch1
Copy link

Tarocch1 commented Jun 9, 2025

Vue version

3.5.16

Link to minimal reproduction

https://play.vuejs.org/#eNqdVE2P0zAQ/Ssjc2gqLYnQAoeSrGjRHuAAiN0bQcgkk663qR3ZTrZV1f/O2E7SFpXycYns+fLMe/OyY/OmibsW2YylptCisVBzucxyZk3OwKBtm5tcinWjtIUdlFgJiXOzlcU7RUaJ0sIeKq3WMKE6kzH2Ho3t7XHiLu4ZcueyUJJcS7SHChlEdtvgDIzVQi6nkN3ALpcAogoeyLIMJvPJNJgBNHWm5dl+osjnhz4ien3un55OXebeff4leTEmU2qaBJAIErpYXDc1t0g3gNTN6E90HjzwjN7gbW0J0IZrviZQ+xiKKsb5Z8JQxDEkUQiP3fBTYiIZSienr3po6XhiZ1dEH8FciWX8aJQkdj1sOXNPihr1p8YKoiFnswHQnPG6Vk8fvM3qFq8Ge/GAxeqM/dFsnC1nnzUa1B3mbPRZrmma4L69+4gbOo/OtSrbmqIvOL+gUXXregxhi1aW1PZRnO/2vaeJNube3G4sSjMM5Rr1dPv4nBGHDtrfjX5o9zp+2a/JnlD0m3OkjaCHS1tQiq5nah74CYZf6fFb9Z+FF5cKD0r7W0FrrE70++agULd6hqRJIdFX0t430sDg42VJHu6kA0ExHkufEne8bjFuWvMQTRaToJyxqPstnMnkT1z4spGX6XEh8yAq68x/EOBdaxpaAYTueaW0m9j9OFQVitHwsxVue/Mow9TUivTnbKOrF1uaDBXD9UdrrZLwtqhFsXLBNArVcYinSXCeIeR7h9qtJRFyHb+KX7xm+5/cddJG

Steps to reproduce

Click Test button in the playground link.

What is expected?

Component A disappears and component B is displayed.

What is actually happening?

TypeError: Cannot read properties of null (reading 'subTree')
    at move (runtime-dom.esm-browser.js:7867:28)
    at move (runtime-dom.esm-browser.js:7881:9)
    at Object.resolve (runtime-dom.esm-browser.js:9240:11)
    at unmountComponent (runtime-dom.esm-browser.js:8086:24)
    at unmount (runtime-dom.esm-browser.js:7955:7)
    at patch (runtime-dom.esm-browser.js:6776:7)
    at patchBlockChildren (runtime-dom.esm-browser.js:7179:7)
    at processFragment (runtime-dom.esm-browser.js:7257:9)
    at patch (runtime-dom.esm-browser.js:6799:9)
    at patchSuspense (runtime-dom.esm-browser.js:8999:7)

System Info

Any additional comments?

No response

@edison1105 edison1105 added scope: suspense 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. labels Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. scope: suspense
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants