mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +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) {
|
||||
const [, uid, clientId] = matchClientComp
|
||||
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]
|
||||
})
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user