mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +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 }) {
|
||||
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