diff --git a/js/src/hooks/use-particle-attachments.ts b/js/src/hooks/use-particle-attachments.ts index a53b60d..a7284f7 100644 --- a/js/src/hooks/use-particle-attachments.ts +++ b/js/src/hooks/use-particle-attachments.ts @@ -1,6 +1,6 @@ import { useMemo } from "react"; import type { Particle } from "@/api/types"; -import { useParticleChildren } from "@/hooks/use-particle"; +import { useLiveParticleChildren } from "@/hooks/use-particle"; import { particlePath, type ParticlePath, parseParticlePath } from "@/lib/particle-path"; type FileParticle = Extract; @@ -18,7 +18,7 @@ export function useParticleAttachments( return particlePath(networkId, [...segments, particleId]); }, [streamPath, particleId]); - const { data: children, isLoading } = useParticleChildren(childrenPath); + const { children, isLoading } = useLiveParticleChildren(childrenPath); const attachments = useMemo( () => (children ?? []).filter((c): c is FileParticle => c.type === "file"),