From f6e1bca2700e47535afadbb7029b48e2fa56dccc Mon Sep 17 00:00:00 2001 From: Brian <64915763+Simlor@users.noreply.github.com> Date: Mon, 15 Sep 2025 12:08:59 +0200 Subject: [PATCH 1/2] Added note about new location for "stores" folder in Nuxt 4. --- packages/docs/ssr/nuxt.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/ssr/nuxt.md b/packages/docs/ssr/nuxt.md index a6d8013b46..1587255cac 100644 --- a/packages/docs/ssr/nuxt.md +++ b/packages/docs/ssr/nuxt.md @@ -90,7 +90,7 @@ By default `@pinia/nuxt` exposes a few auto imports: - `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 within your `stores` folder. It doesn't lookup for nested stores though. You can customize this behavior by setting the `storesDirs` option: +It also automatically imports **all stores** defined within your `stores` folder (note that in Nuxt 4, this folder has been moved from the project root directory to the `app` directory). It doesn't lookup for nested stores though. You can customize this behavior by setting the `storesDirs` option: ```ts // nuxt.config.ts From f5a20ad8de6a2e6a66d7a745f011a359f8da92ef Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Mon, 15 Sep 2025 14:14:59 +0200 Subject: [PATCH 2/2] Update packages/docs/ssr/nuxt.md --- packages/docs/ssr/nuxt.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/ssr/nuxt.md b/packages/docs/ssr/nuxt.md index 1587255cac..d6316ffba5 100644 --- a/packages/docs/ssr/nuxt.md +++ b/packages/docs/ssr/nuxt.md @@ -90,7 +90,7 @@ By default `@pinia/nuxt` exposes a few auto imports: - `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 within your `stores` folder (note that in Nuxt 4, this folder has been moved from the project root directory to the `app` directory). It doesn't lookup for nested stores though. You can customize this behavior by setting the `storesDirs` option: +It also automatically imports **all stores** defined within your `stores` folder (`app/stores` in Nuxt 4). It doesn't lookup for nested stores though. You can customize this behavior by setting the `storesDirs` option: ```ts // nuxt.config.ts