Error when unmounting after ssr if async component not loaded yet #3787
Labels
❗ p4-important
Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.
🐞 bug
Something isn't working
scope: ssr
Version
3.1.0-beta.3
Reproduction link
https://github.com/danelowe/vite-ssr-lazy-component
Steps to reproduce
npm run dev
What is expected?
Displays the about page with no error
What is actually happening?
Error:
In. 3.1.0-beta.3
I took the example at
https://github.com/vitejs/vite/tree/main/packages/playground/ssr-vue
, removed thedep-import-type
dependency, addedvite
as a dependency. then modified the import of theFoo
component to chain it's loading to an unresolved promise when rendering client-side.The intention is to lazy-load/hydrate some components client-side, so any tips on how to achieve this would be appreciated.
In any case, I think this is a significant bug as it would cause errors when navigating before components are able to be loaded.
The text was updated successfully, but these errors were encountered: