killmenot / vue3-vt-notifications

A headless vue3 notification library to use with tailwind
MIT License
22 stars 3 forks source link

Non-function value encountered for default slot. Prefer function slots for better performance. #2

Closed NoahCardoza closed 3 years ago

NoahCardoza commented 3 years ago

Looks like these warning are coming from this module. Unsure as to why... Any ideas?

image

runtime-core.esm-bundler.js?5c40:38 [Vue warn]: Non-function value encountered for default slot. Prefer function slots for better performance. 
  at <TransitionGroup enter-active-class="transform ease-out duration-300 transition" enter-from-class="translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-4" enter-to-class="translate-y-0 opacity-100 sm:translate-x-0"  ... > 
  at <VTNotification> 
  at <VTNotificationGroup group=undefined > 
  at <App>
warn @ runtime-core.esm-bundler.js?5c40:38
runtime-core.esm-bundler.js?5c40:38 [Vue warn]: Extraneous non-props attributes (leave-to) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. 
  at <TransitionGroup enter-active-class="transform ease-out duration-300 transition" enter-from-class="translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-4" enter-to-class="translate-y-0 opacity-100 sm:translate-x-0"  ... > 
  at <VTNotification> 
  at <VTNotificationGroup group=undefined > 
  at <App>
warn @ runtime-core.esm-bundler.js?5c40:38
runtime-core.esm-bundler.js?5c40:38 [Vue warn]: Non-function value encountered for default slot. Prefer function slots for better performance. 
  at <TransitionGroup enter-active-class="transform ease-out duration-300 transition" enter-from-class="translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-4" enter-to-class="translate-y-0 opacity-100 sm:translate-x-0"  ... > 
  at <VTNotification> 
  at <VTNotificationGroup group=undefined > 
  at <App>
warn @ runtime-core.esm-bundler.js?5c40:38
runtime-core.esm-bundler.js?5c40:38 [Vue warn]: Extraneous non-props attributes (leave-to) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. 
  at <TransitionGroup enter-active-class="transform ease-out duration-300 transition" enter-from-class="translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-4" enter-to-class="translate-y-0 opacity-100 sm:translate-x-0"  ... > 
  at <VTNotification> 
  at <VTNotificationGroup group=undefined > 
  at <App>
NoahCardoza commented 3 years ago

At I think I have found at least one of the the issues I'll submit a PR really quick.

killmenot commented 3 years ago

@NoahCardoza Please test it on version 1.0.1