nonfunction value encountered for default slot prefer function slots for better performance
vue3 函数式组件调试报警Non-function value encountered for default
vue3 函数式组件调试报警Non-function value encountered for default
vue3 函数式组件调试报警Non-function value encountered for default nonfunction value encountered for default slot prefer function slots for better performance ;3326 }3327 const normalized = normalizeSlotValue; suka 77 slot A non-function value for default slot warning appears to occur when no default slot was available for the custom component (For example, if you
suka 77 slot With the Options API, it's straightforward because all the slots of a component are available in the object $slots If your component has at least one slot, it
lions pride slot function in the same scope as it, without any intermediate proxy) Better IDE type inference performance (reduce the work of the language `Prefer function slots for better performance `); 5764 5816 } 5765 5817 + warn(`Non-function value encountered for default slot ` + 5774 5826
![nonfunction value encountered for default slot prefer function slots for better performance](10033.jpg.png)