Answer the question
In order to leave comments, you need to log in
How to solve this warning in render()?
Vue 3
Hello, can you tell me how to remove this warning:
Non-function value encountered for default slot. Prefer function slots for better performance.
// DeepL переводчик:
Нефункциональное значение, встречающееся для слота по умолчанию.
Предпочтительные функциональные слоты для лучшей производительности
export default {
render() {
return [
h('ul', this.$slots.default().map(slot => h('li', slot)))
]
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question