From 3304ed4733f7301a29231ee4f967e04fd7c10880 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Tue, 19 Mar 2024 02:41:17 +0000
Subject: fix: Remove flicker from search bar

---
 apps/web/app/dashboard/search/page.tsx | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

(limited to 'apps/web/app/dashboard/search/page.tsx')

diff --git a/apps/web/app/dashboard/search/page.tsx b/apps/web/app/dashboard/search/page.tsx
index 62d42a43..76d23af2 100644
--- a/apps/web/app/dashboard/search/page.tsx
+++ b/apps/web/app/dashboard/search/page.tsx
@@ -8,18 +8,14 @@ import { useBookmarkSearch } from "@/lib/hooks/bookmark-search";
 import Loading from "../bookmarks/loading";
 
 function SearchComp() {
-  const { data, isPending, isPlaceholderData } = useBookmarkSearch();
+  const { data } = useBookmarkSearch();
 
   const inputRef: React.MutableRefObject<HTMLInputElement | null> =
     useRef<HTMLInputElement | null>(null);
 
   return (
     <div className="container flex flex-col gap-3 p-4">
-      <SearchInput
-        ref={inputRef}
-        autoFocus={true}
-        loading={isPending || isPlaceholderData}
-      />
+      <SearchInput ref={inputRef} autoFocus={true} />
       <hr />
       {data ? (
         <BookmarksGrid
-- 
cgit v1.3-1-g0d28

