-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: upgrade components to composition API #571
Conversation
✅ Deploy Preview for nuxt-image-v1 canceled.
|
Would be nice adding the example directly to docs. Don't know if that should go to a separate PR? :)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for helping on this. Nice changes ❤️
@AndersNielsen85 I changed back usage to |
Co-authored-by: Pooya Parsa <pooya@pi0.io>
@pi0 no problem, happy to help. |
Co-authored-by: Pooya Parsa <pooya@pi0.io>
This PR upgrades the
NuxtImg
andNuxtPicture
components to use the Composition API, and exposes a newuseImage
composable with the same behavior of the$img
utility.Other changes:
nuxt-img
component now supportspreload