Skip to content

Commit

Permalink
docs: note for Nuxt3 auto-import
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jun 18, 2022
1 parent 3d846d1 commit 543f26e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/contributors.json
Expand Up @@ -9,9 +9,9 @@
"cawa-93",
"patak-dev",
"lstoeferle",
"michealroberts",
"harmyderoman",
"Shinigami92",
"michealroberts",
"sxzz",
"wtykirby",
"YunYouJun",
Expand Down
4 changes: 4 additions & 0 deletions packages/core/useFetch/index.md
Expand Up @@ -7,6 +7,10 @@ category: Network
Reactive [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) provides the ability to abort requests, intercept requests before
they are fired, automatically refetch requests when the url changes, and create your own `useFetch` with predefined options.

::: tip
When using with Nuxt 3, this functions will **NOT** be auto imported in favor of Nuxt's built-in [`useFetch()`](https://v3.nuxtjs.org/api/composables/use-fetch). Use explicit import if you want to use the function from VueUse.
:::

## Usage

### Basic Usage
Expand Down
4 changes: 4 additions & 0 deletions packages/core/useStorage/index.md
Expand Up @@ -6,6 +6,10 @@ category: State

Reactive [LocalStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage)/[SessionStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage)

::: tip
When using with Nuxt 3, this functions will **NOT** be auto imported in favor of Nitro's built-in [`useStorage()`](https://nitro.unjs.io/guide/storage.html). Use explicit import if you want to use the function from VueUse.
:::

## Usage

```js
Expand Down
4 changes: 4 additions & 0 deletions packages/core/useTitle/index.md
Expand Up @@ -6,6 +6,10 @@ category: Browser

Reactive document title.

::: tip
When using with Nuxt 3, this functions will **NOT** be auto imported in favor of Nuxt's built-in `useTitle()`. Use explicit import if you want to use the function from VueUse.
:::

## Usage

```js
Expand Down
6 changes: 5 additions & 1 deletion packages/integrations/useCookies/index.md
Expand Up @@ -4,7 +4,11 @@ category: '@Integrations'

# useCookies

wrapper for [`universal-cookie`](https://www.npmjs.com/package/universal-cookie).
Wrapper for [`universal-cookie`](https://www.npmjs.com/package/universal-cookie).

::: tip
When using with Nuxt 3, this functions will **NOT** be auto imported in favor of Nuxt's built-in [`useCookie()`](https://v3.nuxtjs.org/api/composables/use-cookie). Use explicit import if you want to use the function from VueUse.
:::

## Install

Expand Down

0 comments on commit 543f26e

Please sign in to comment.