-
Notifications
You must be signed in to change notification settings - Fork 22
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
<RenderCacheable> causes Hydration Error when wrapped in <Teleport> #81
Comments
I think this is a bug in Nuxt. Let's use this simple component instead of export default defineComponent({
name: 'TestRender',
async setup() {
return () => h('div', 'Test')
},
}) And then render it like this: <Teleport to="body">
<TestRender />
</Teleport> Which gives the same hydration error:
However: The moment we remove export default defineComponent({
name: 'TestRender',
setup() {
return () => h('div', 'Test')
},
}) So it seems to happen only for async components. Since I've reported the bug here: nuxt/nuxt#29919 |
Seems like I found a relevant issue vuejs/core#6207 |
Indeed, looks like it. I have added a note in the docs that using |
<RenderCacheable>
wrapped in<Teleport>
causes Hydration errorReproduction: https://stackblitz.com/edit/nuxt-starter-wmm2fr?file=app.vue
Steps to reproduce:
If you have any ideas please share with me. I'm ready to fix
The text was updated successfully, but these errors were encountered: