Skip to content

defineAsyncComponent's loadingComponent option not working in ssr mode? #12836

Discussion options

You must be logged in to vote

This is expected behavior. When rendering asynchronous components in SSR, it will wait for them to resolve rather than immediately returning the rendering result of the loadingComponent. For example, it might use an asynchronous method in async setup to query a database or other asynchronous functions, and these asynchronous operations cannot be accessed on the client side.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by linzhe141
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants