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

feat(runtime-core): 7203 hydrating custom elements #8035

Closed
wants to merge 3 commits into from
Closed

feat(runtime-core): 7203 hydrating custom elements #8035

wants to merge 3 commits into from

Conversation

steveworkman
Copy link

Resolves #7203 by checking for the presence of a custom element in the custom element registry and allowing that to be hydrated with vue properties.

Ideally, I'd use the isCustomElement compiler option - however, that is not available at runtime. This is the next best thing - however, it could potentially hydrate more components than the user intended if they have not specified all of their custom elements in the isCustomElement function.

This is required for hydration to function correctly in prashantpalikhe/nuxt-ssr-lit#34

This PR superceedes #7300 as that one got out of sync with main

@steveworkman steveworkman changed the title Feat/7203 hydrating custom elements feat(runtime-core): 7203 hydrating custom elements Apr 5, 2023
@steveworkman steveworkman closed this by deleting the head repository Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom element's props are not applied on the client side when they are SSR-ed
2 participants