Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Caps page has a weird double loading effect (#840)
Ameer Al Ashhabb21dab0e834b
diff --git a/apps/web/app/(org)/dashboard/caps/Caps.tsx b/apps/web/app/(org)/dashboard/caps/Caps.tsxindex 4b42adc37..317c5731f 100644--- a/apps/web/app/(org)/dashboard/caps/Caps.tsx+++ b/apps/web/app/(org)/dashboard/caps/Caps.tsx@@ -19,7 +19,7 @@ import Folder from "./components/Folder";import { faInfoCircle } from "@fortawesome/free-solid-svg-icons";import type { FolderDataType } from "./components/Folder";import { useUploadingContext } from "./UploadingContext";-import { useSuspenseQuery } from "@tanstack/react-query";+import { useQuery } from "@tanstack/react-query";export type VideoData = {id: string;@@ -78,7 +78,7 @@ export const Caps = ({const anyCapSelected = selectedCaps.length > 0;- const { data: analyticsData } = useSuspenseQuery({+ const { data: analyticsData } = useQuery({queryKey: ['analytics', data.map(video => video.id)],queryFn: async () => {if (!dubApiKeyEnabled || data.length === 0) {