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

Using Suspense and KeepAlive yields to error when component with async dependencies is not completed #8121

Closed
jahermosilla opened this issue Apr 19, 2023 · 2 comments

Comments

@jahermosilla
Copy link

jahermosilla commented Apr 19, 2023

Vue version

3.2.47

Link to minimal reproduction

Vue SFC Playground

Steps to reproduce

Click on toggle button twice quickly to force the second component not to fullfill the promise.

Then click again to load that "pending" component and you will see an error:
Uncaught (in promise): Cannot read properties of null (reading 'parentNode')

I think KeepAlive is caching the component even if async dependencies are not completed?

What is expected?

KeepAlive should not cache component with async dependencies after they are fullfiled?
Suspense should trigger pending state.

What is actually happening?

An error is thrown

System Info

No response

Any additional comments?

No response

@jahermosilla
Copy link
Author

Maybe related: #8105

@edison1105
Copy link
Member

duplicate of #5993

@github-actions github-actions bot locked and limited conversation to collaborators Jan 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants