diff --git a/packages/docs/ssr/nuxt.md b/packages/docs/ssr/nuxt.md index 6d73bb0a46..95e7e3878b 100644 --- a/packages/docs/ssr/nuxt.md +++ b/packages/docs/ssr/nuxt.md @@ -64,7 +64,8 @@ const { data } = await useAsyncData('user', () => store.fetchUser()) By default `@pinia/nuxt` exposes a few auto imports: - `usePinia()`, which is similar to `getActivePinia()` but works better with Nuxt. You can add auto imports to make your life easier: -- `defineStore()` +- `defineStore()` to define stores +- `storeToRefs()` when you need to extract individual refs from a store - `acceptHMRUpdate()` for [hot module replacement](../cookbook/hot-module-replacement.md) It also automatically imports **all stores** defined withing your `stores` folder. It doesn't lookup for nested stores though. You can customize this behavior by setting the `storeDirs` option: