mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 09:22:27 +00:00
chore: document div
wrapper in client-only page (#30359)
This commit is contained in:
parent
8cad9ccae0
commit
5f046a779d
@ -18,6 +18,8 @@ export const createClientPage = (loader: AsyncComponentLoader) => {
|
|||||||
setup (_, { attrs }) {
|
setup (_, { attrs }) {
|
||||||
const nuxtApp = useNuxtApp()
|
const nuxtApp = useNuxtApp()
|
||||||
if (import.meta.server || nuxtApp.isHydrating) {
|
if (import.meta.server || nuxtApp.isHydrating) {
|
||||||
|
// wrapped with div to avoid Transition issues
|
||||||
|
// @see https://github.com/nuxt/nuxt/pull/25037#issuecomment-1877423894
|
||||||
return () => h('div', [
|
return () => h('div', [
|
||||||
h(ClientOnly, undefined, {
|
h(ClientOnly, undefined, {
|
||||||
default: () => h(page, attrs),
|
default: () => h(page, attrs),
|
||||||
|
Loading…
Reference in New Issue
Block a user