Skip to content

Commit

Permalink
docs(nuxt): note about disabled auto-imports
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 31, 2022
1 parent 1ed33ec commit 900317f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/nuxt/README.md
Expand Up @@ -19,6 +19,19 @@ export default defineNuxtConfig({
})
```

## Caveats

The following utils are **disabled** from auto-import for Nuxt to avoid conflicts with Nuxt's built-in utils:

- `toRefs`
- `useFetch`
- `useCookie`
- `useHead`
- `useTitle`
- `useStorage`

You can always use them by explicitly import from `@vueuse/core`

## License

[MIT License](https://github.com/vueuse/vueuse/blob/master/LICENSE) © 2021-PRESENT [Anthony Fu](https://github.com/antfu)

0 comments on commit 900317f

Please sign in to comment.