mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(nuxt): add missing island uid for selective client components (#27633)
This commit is contained in:
parent
a3d8f005a6
commit
0602dd0ae2
@ -698,7 +698,7 @@ function replaceIslandTeleports (ssrContext: NuxtSSRContext, html: string) {
|
|||||||
if (matchClientComp) {
|
if (matchClientComp) {
|
||||||
const [, uid, clientId] = matchClientComp
|
const [, uid, clientId] = matchClientComp
|
||||||
if (!uid || !clientId) { continue }
|
if (!uid || !clientId) { continue }
|
||||||
html = html.replace(new RegExp(` data-island-component="${clientId}"[^>]*>`), (full) => {
|
html = html.replace(new RegExp(` data-island-uid="${uid}" data-island-component="${clientId}"[^>]*>`), (full) => {
|
||||||
return full + teleports[key]
|
return full + teleports[key]
|
||||||
})
|
})
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user