Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Is there way to use composition api in nuxt 3?


Asked by Jasiah Perez on Dec 08, 2021 FAQ



@nuxtjs/composition-api provides a way to use the Vue 3 Composition API in with Nuxt-specific features. Note: the main aim is to allow experimentation and feedback before the final release of Nuxt 3. The API of Nuxt-specific methods will likely change before Nuxt 3 is released.
In respect to this,
Disclaimer: Nuxt Composition API module (as well as Vue Composition API Plugin) is experimental and could be unreliable therefore it’s not recommended for production usage. The purpose of this article is to show some interesting possibilities that Composition API could bring to Nuxt.
In fact, From the docs: @nuxtjs/composition-api provides a way to use the Vue 3 Composition API in with Nuxt-specific features. Of course you could also continue to use Vue 2 with Nuxt. More Info
Accordingly,
About 1.5 months ago, the official Nuxt Twitter mentionedposting a roadmap for Nuxt 3 soon You can see a Nuxt 3 roadmap slideshow here. Use the arrows in the slider to scroll it down.
Similarly,
Please note that the Composition API is a major feature of Vue v3 which is still in pre-alpha state. Its probably safe to say that there won't be any official Nuxt.js documentation about it until Vue v3 is at least in beta state but maybe not even until v3 stable has been released.