Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Slow rendering of React components. #165

Open
spatil32 opened this issue Dec 17, 2022 · 1 comment
Open

Slow rendering of React components. #165

spatil32 opened this issue Dec 17, 2022 · 1 comment

Comments

@spatil32
Copy link

I have a VueJS project setup with Nuxt. I have all my Vue pages loading with the SSR support. In one of the main pages, I am rendering React component (Header Component) using Vuera. The react component is at the very top in the component tree, however, the entire page loads first and then React component loads afterwords which is creating confusing behavior for users. Is SSR supported by Vuera or is there any workaround to change priority of rendering so that React component renders first before all Vue components render?

@kyle-ssg
Copy link

kyle-ssg commented Aug 1, 2023

+1, I think under the hood, the library first mounts the vue wrapper and then renders to the root node ref causing the layout shift.

I'm not entirely sure the problem is avoidable but I do wonder whether rendering prior mounting can be done by having the initial markup be a react renderToString?

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