@nuxtjs/composition-api
Composition API hooks for Nuxt
Last updated 5 years ago by danielroe .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @nuxtjs/composition-api 
SYNC missed versions from official npm registry.

????️ Nuxt Composition API

Composition API hooks for Nuxt

@nuxtjs/composition-api provides a way to use the Vue 3 Composition API in with Nuxt-specific features.


Nuxt Bridge has now been released in beta. It has full composition API support and it's strongly recommended to migrate from @nuxtjs/composition-api, if possible, by following the steps in the Bridge migration guide. Feedback welcome at https://github.com/nuxt-community/composition-api/discussions/585.


Features

  • ???? Fetch: Support for the new Nuxt fetch() in v2.12+
  • ℹ️ Context: Easy access to router, app, store within setup()
  • ????️ Head: Interact directly with your vue-meta properties within setup()
  • Automatic hydration: Drop-in replacement for ref with automatic SSR stringification and hydration (ssrRef)
  • ???? SSR support: Allows using the Composition API with SSR
  • ???? TypeScript: Written in TypeScript

Read Documentation

Contributors

Contributions are very welcome.

  1. Clone this repo

    git clone git@github.com:nuxt-community/composition-api.git
    
  2. Install dependencies and build project

    yarn
    # Compile library and watch for changes
    yarn watch
    # Start a test Nuxt fixture with hot reloading
    yarn fixture
    # Test
    yarn test
    

Tip: You can also use yarn link to test the module locally with your Nuxt project.

License

MIT License - Copyright © Daniel Roe

Current Tags

  • 0.22.5-beta.0                                ...           beta (5 years ago)
  • 0.33.1                                ...           latest (4 years ago)
  • 0.21.0-vite-1                                ...           vite (5 years ago)

64 Versions

  • 0.33.1                                ...           4 years ago
  • 0.33.0                                ...           4 years ago
  • 0.32.0                                ...           4 years ago
  • 0.31.0                                ...           4 years ago
  • 0.30.0                                ...           4 years ago
  • 0.29.3                                ...           5 years ago
  • 0.29.2                                ...           5 years ago
  • 0.29.0                                ...           5 years ago
  • 0.28.0                                ...           5 years ago
  • 0.27.0                                ...           5 years ago
  • 0.26.0                                ...           5 years ago
  • 0.25.2                                ...           5 years ago
  • 0.25.1                                ...           5 years ago
  • 0.25.0                                ...           5 years ago
  • 0.24.7                                ...           5 years ago
  • 0.24.6                                ...           5 years ago
  • 0.24.5                                ...           5 years ago
  • 0.24.4                                ...           5 years ago
  • 0.24.3                                ...           5 years ago
  • 0.24.2                                ...           5 years ago
  • 0.24.1                                ...           5 years ago
  • 0.24.0                                ...           5 years ago
  • 0.23.4                                ...           5 years ago
  • 0.23.3                                ...           5 years ago
  • 0.23.2                                ...           5 years ago
  • 0.23.1                                ...           5 years ago
  • 0.23.0                                ...           5 years ago
  • 0.22.5-beta.0                                ...           5 years ago
  • 0.22.4                                ...           5 years ago
  • 0.22.3                                ...           5 years ago
  • 0.22.2                                ...           5 years ago
  • 0.22.1                                ...           5 years ago
  • 0.22.0                                ...           5 years ago
  • 0.21.0-vite-1                                ...           5 years ago
  • 0.21.0-vite-0                                ...           5 years ago
  • 0.21.0                                ...           5 years ago
  • 0.20.2                                ...           5 years ago
  • 0.20.1                                ...           5 years ago
  • 0.20.0                                ...           5 years ago
  • 0.19.1                                ...           5 years ago
  • 0.19.0                                ...           5 years ago
  • 0.18.1                                ...           5 years ago
  • 0.18.0                                ...           5 years ago
  • 0.17.0                                ...           5 years ago
  • 0.16.4                                ...           5 years ago
  • 0.16.3                                ...           5 years ago
  • 0.16.1                                ...           5 years ago
  • 0.16.0                                ...           5 years ago
  • 0.15.1                                ...           5 years ago
  • 0.15.0                                ...           5 years ago
  • 0.14.0                                ...           5 years ago
  • 0.13.5                                ...           5 years ago
  • 0.13.4                                ...           5 years ago
  • 0.13.3                                ...           5 years ago
  • 0.13.2                                ...           5 years ago
  • 0.13.1                                ...           5 years ago
  • 0.13.0                                ...           5 years ago
  • 0.12.6                                ...           6 years ago
  • 0.12.5                                ...           6 years ago
  • 0.12.4                                ...           6 years ago
  • 0.12.3                                ...           6 years ago
  • 0.12.2                                ...           6 years ago
  • 0.12.1                                ...           6 years ago
  • 0.12.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 61
Last Day 0
Last Week 61
Last Month 0
Dependencies (3)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |