Skip to content
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

In KeepAlive and Suspense, switching before the component is resolved will cause the component not to be rendered #10899

Open
d13-proto opened this issue May 10, 2024 · 0 comments · May be fixed by #10912

Comments

@d13-proto
Copy link

Vue version

3.4.27

Link to minimal reproduction

https://play.vuejs.org/#eNrNVF1r2zAU/SsX76EpZHaSFQbBCcSlD9vKVpa+1WUo9nWi1paMJDsJIf99V/LHktF1hb3sRUj3Hp17dD908BZl6dcVelMv1InipQGNpirnseBFKZWBAyjM4AiZkgVcEPSid13Loly0Dj9wJ8t1DojOAFELiEUihW4Qt5w2M3iIBTSUw24X0e6xgyaVUigskgQNRpeWJAhg7MNyy02yASPbgCvMpMJWnkIt8xq1Hwt62T0vUFZmMLiE2RwONlDL69csr5DYx7E4DmE8GvUhJn2IFUueuziLITCRwl5WkDBBaUMwG2ZoQSDFhjg1yKyVwUiQkAZSrsuc7TF9s56R03PV6AmDpkpUHzoYLIjMIJ0AwpTXbkPbnK0wn4dclBUJ2pc4iz3FUi5jD+r3hUwxJ0sbiWxTF4xMIzoEc1hAGDQc/0o4bgijE8KW8gtiuch53ah3pmWlS6S09BayJZQ+KWzhp1wTYdcxD22wx9ibh0GP6vnd5S5B8C5jeW6rd0JN/s14fivpGWLt+34Y0PHkcnCW3sb0m8IwOH9FGDRFOLvrDZ1oNxsvzBnbMm5A4BbuaFC4xsGg7VnXEydN0pqHMLHN8OZuuG4Hp8/RFBZ/E+vm9D8RG70m1miatYyv/SctBQl2I0SdSNd5jupbaTj9HrE3bYbL+qgT5PazsxlVoftt3J0NJs8v2J/0ztpi747ehKrG2Ot9hqk1UsNb983yK+5o3ztpLKqc0K84v9ssVVZjA4sqkZLsE5xT+8n9p9Sm9/pmRz+L7h5lhVrk0eFjj6pmy/enp/+S+8G/cvfoc6Es/qhRWU5KIDn8yUfv+BMMggE5

Steps to reproduce

  1. Switch to CompB before CompA resolves.
  2. Switch back to CompA, and you can see that the contents of CompA are not displayed.

What is expected?

Expect CompA to be rendered correctly, or start loading again.

What is actually happening?

CompA is not rendered.

System Info

No response

Any additional comments?

After the step 2, switching again causes the error: Uncaught (in promise): Cannot read properties of null (reading 'parentNode')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants