@innertia-solutions/innertia-nuxt 0.1.9 → 0.1.10

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.
@@ -11,10 +11,14 @@ export function useTable(tableOrName?: TableConfig) {
11
11
  return;
12
12
  }
13
13
 
14
- const fullCacheKey = `table_cache_${tableName}`;
15
-
16
14
  try {
17
- sessionStorage.removeItem(fullCacheKey);
15
+ const prefix = `full_table_${tableName}`
16
+ for (const key of Object.keys(sessionStorage)) {
17
+ if (key === prefix || key.startsWith(prefix + '_')) {
18
+ sessionStorage.removeItem(key)
19
+ }
20
+ }
21
+ sessionStorage.removeItem(`table_cache_${tableName}`)
18
22
  } catch (error) {
19
23
  console.warn('[useTable] Error invalidating cache:', error);
20
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innertia-solutions/innertia-nuxt",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Innertia Solutions — Nuxt layer unificada: core, auth, multitenancy, theme y app contexts",
5
5
  "keywords": [
6
6
  "nuxt",