mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
fix(nuxt): init payload when using islands with ssr: false
This commit is contained in:
parent
8010b04f69
commit
f080c426a2
@ -119,6 +119,7 @@ export default defineComponent({
|
||||
if (import.meta.client && nuxtApp.isHydrating) {
|
||||
ssrHTML.value = getFragmentHTML(instance.vnode?.el ?? null, true)?.join('') || ''
|
||||
const key = `${props.name}_${hashId.value}`
|
||||
nuxtApp.payload.data[key] ||= {}
|
||||
nuxtApp.payload.data[key].html = ssrHTML.value
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user