@innertia-solutions/innertia-nuxt 0.1.74 → 0.1.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innertia-solutions/innertia-nuxt",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "description": "Innertia Solutions — Nuxt layer unificada: core, auth, multitenancy, theme y app contexts",
5
5
  "keywords": [
6
6
  "nuxt",
@@ -29,8 +29,10 @@ export const useOrganizationStore = defineStore('organization', {
29
29
  {
30
30
  key: 'innertia_org_by_ctx',
31
31
  pick: ['currentByContext'],
32
- storage: piniaPluginPersistedstate.cookies,
33
- cookieOptions: { maxAge: 60 * 60 * 24 * 30, sameSite: 'lax' },
32
+ // pinia-plugin-persistedstate v4: `cookies(...)` es una fábrica que recibe las
33
+ // opciones. Pasarla sin llamar (API v3 + `cookieOptions`) deja un storage inválido
34
+ // y la sede elegida nunca se guarda: cada recarga vuelve al selector de sede.
35
+ storage: piniaPluginPersistedstate.cookies({ maxAge: 60 * 60 * 24 * 30, sameSite: 'lax' }),
34
36
  },
35
37
  ],
36
38