mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
chore: document div
wrapper in client-only page (#30359)
This commit is contained in:
parent
c4ce09bc0b
commit
9a8e34d81a
@ -18,6 +18,8 @@ export const createClientPage = (loader: AsyncComponentLoader) => {
|
||||
setup (_, { attrs }) {
|
||||
const nuxtApp = useNuxtApp()
|
||||
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', [
|
||||
h(ClientOnly, undefined, {
|
||||
default: () => h(page, attrs),
|
||||
|
Loading…
Reference in New Issue
Block a user