@innertia-solutions/innertia-nuxt 0.1.33 → 0.1.34

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.
@@ -220,7 +220,8 @@ const fetchInitial = async () => {
220
220
  * Útil tras mutar un nodo (ej. marcar revisado) sin remontar el componente.
221
221
  */
222
222
  const reload = async () => {
223
- loading.value = true
223
+ // No tocamos `loading` (eso dispara el skeleton y hace desaparecer el árbol).
224
+ // Solo `isFetching` → spinner sutil, el árbol queda visible durante el refresh.
224
225
  isFetching.value = true
225
226
  isDataFromCache.value = false
226
227
  try {
@@ -244,7 +245,6 @@ const reload = async () => {
244
245
  } catch (e) {
245
246
  console.error('[Tree.Standard] reload failed:', e)
246
247
  } finally {
247
- loading.value = false
248
248
  isFetching.value = false
249
249
  }
250
250
  }
@@ -630,6 +630,9 @@ defineExpose({
630
630
  <!-- Secondary actions -->
631
631
  <div class="ml-auto flex items-center gap-1">
632
632
 
633
+ <!-- Spinner de refresco (reload preservando expansión) -->
634
+ <IconLoader2 v-if="isFetching && !loading" class="size-4 text-muted-foreground animate-spin" />
635
+
633
636
  <!-- Instant + Reload SIEMPRE primero cuando infoPosition === 'none' -->
634
637
  <InfoToolbar
635
638
  v-if="infoPosition === 'none'"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innertia-solutions/innertia-nuxt",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "Innertia Solutions — Nuxt layer unificada: core, auth, multitenancy, theme y app contexts",
5
5
  "keywords": [
6
6
  "nuxt",