mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-09 03:03:18 +00:00
fix: return render function and not vnode directly
This commit is contained in:
parent
162908aac0
commit
fd0adea179
@ -18,9 +18,9 @@ function elementIsVisibleInViewport (el: Element) {
|
||||
export const createLazyIOClientPage = (componentLoader: Component) => {
|
||||
return defineComponent({
|
||||
inheritAttrs: false,
|
||||
setup (_, { attrs }) {
|
||||
setup (_, { attrs }) {
|
||||
if (import.meta.server) {
|
||||
return h('div', {}, [
|
||||
return () => h('div', {}, [
|
||||
h(componentLoader, attrs),
|
||||
])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user