close
The Wayback Machine - https://web.archive.org/web/20200606232308/https://github.com/nuxt-community/composition-api
Skip to content
Composition API hooks for Nuxt.
TypeScript Vue JavaScript
Branch: master
Clone or download

Latest commit

renovate and renovate-bot chore(deps): update devdependency eslint to ^7.2.0 (#101)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
1
Latest commit 4dcf965 Jun 6, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Image .github ci: run tests on prs May 8, 2020
Image docs feat: add `useStatic` helper to inline results of API calls (#79) May 30, 2020
Image example chore(deps): update dependency @nuxt/http to ^0.5.2 (#100) Jun 5, 2020
Image lib chore: init Apr 27, 2020
Image src fix: regression if `ssrRef` is used outside setup (in dev) Jun 4, 2020
Image test feat: add `useStatic` helper to inline results of API calls (#79) May 30, 2020
Image .babelrc.js chore: init Apr 27, 2020
Image .eslintignore chore: update`@typescript-eslint` to v3 May 21, 2020
Image .eslintrc.js fix: `useMeta` refs should be reactive (#81) May 27, 2020
Image .gitignore docs: add minimal vuepress docs May 8, 2020
Image .nowignore ci: remove `test` from `.nowignore` May 8, 2020
Image .prettierignore feat: use appropriate core-js polyfill for ie11 May 11, 2020
Image .release-it.json chore: init Apr 27, 2020
Image CHANGELOG.md chore: release v0.8.2 Jun 4, 2020
Image CODE_OF_CONDUCT.md chore: init Apr 27, 2020
Image LICENCE chore: init Apr 27, 2020
Image README.md docs: update development workflow May 9, 2020
Image jest.config.js test: disable vue tips May 11, 2020
Image lint-staged.config.js chore: init Apr 27, 2020
Image now.json feat: add `useStatic` helper to inline results of API calls (#79) May 30, 2020
Image package.json chore(deps): update devdependency eslint to ^7.2.0 (#101) Jun 6, 2020
Image prettier.config.js chore: init Apr 27, 2020
Image renovate.json chore: ignore `testcafe` updates until new bug is resolved May 24, 2020
Image rollup.config.js chore: add cjs build for jest testing May 30, 2020
Image tsconfig.json chore: use `rollup-plugin-dts` to generate .d.ts bundle May 11, 2020
Image yarn.lock chore(deps): update devdependency eslint to ^7.2.0 (#101) Jun 6, 2020

README.md

🏗️ Nuxt Composition API

Composition API hooks for Nuxt

Image Image Image Image Image Image

nuxt-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. It is not recommended to use this package in production.

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

You can’t perform that action at this time.