From 2ac3c39a9c80305bb959d88561e78f65a1cd1be1 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Thu, 22 Feb 2024 17:33:12 +0000
Subject: feature: Adding some loading card while the link is getting crawled

---
 packages/web/app/dashboard/bookmarks/components/BookmarksGrid.tsx | 7 -------
 1 file changed, 7 deletions(-)

(limited to 'packages/web/app/dashboard/bookmarks/components/BookmarksGrid.tsx')

diff --git a/packages/web/app/dashboard/bookmarks/components/BookmarksGrid.tsx b/packages/web/app/dashboard/bookmarks/components/BookmarksGrid.tsx
index c1c8f3e0..dc98472e 100644
--- a/packages/web/app/dashboard/bookmarks/components/BookmarksGrid.tsx
+++ b/packages/web/app/dashboard/bookmarks/components/BookmarksGrid.tsx
@@ -1,7 +1,5 @@
 "use client";
 
-import { useLoadingCard } from "@/lib/hooks/use-loading-card";
-import BookmarkCardSkeleton from "./BookmarkCardSkeleton";
 import LinkCard from "./LinkCard";
 import { ZBookmark, ZGetBookmarksRequest } from "@/lib/types/api/bookmarks";
 import { api } from "@/lib/trpc";
@@ -13,8 +11,6 @@ function renderBookmark(bookmark: ZBookmark) {
   }
 }
 
-export const dynamic = "force-dynamic";
-
 export default function BookmarksGrid({
   query,
   bookmarks: initialBookmarks,
@@ -24,12 +20,9 @@ export default function BookmarksGrid({
 }) {
   const { data } = api.bookmarks.getBookmarks.useQuery(query, {
     initialData: { bookmarks: initialBookmarks },
-    staleTime: Infinity,
   });
-  const { loading } = useLoadingCard();
   return (
     <div className="container grid grid-cols-1 gap-4 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3">
-      {loading && <BookmarkCardSkeleton />}
       {data.bookmarks.map((b) => renderBookmark(b))}
     </div>
   );
-- 
cgit v1.2.3-70-g09d2

