From be518d51eaf57a1f0e04b7608d9a4362a516eb85 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Wed, 13 Mar 2024 02:43:57 +0000
Subject: mobile: All bookmarks homepage

---
 packages/mobile/app/sharing.tsx | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'packages/mobile/app/sharing.tsx')

diff --git a/packages/mobile/app/sharing.tsx b/packages/mobile/app/sharing.tsx
index c9b6c0bb..89f1a168 100644
--- a/packages/mobile/app/sharing.tsx
+++ b/packages/mobile/app/sharing.tsx
@@ -22,9 +22,13 @@ function SaveBookmark({ setMode }: { setMode: (mode: Mode) => void }) {
     return null;
   }, [params]);
 
+  const invalidateAllBookmarks =
+    api.useUtils().bookmarks.getBookmarks.invalidate;
+
   useEffect(() => {
     if (!isPending && shareIntent?.text) {
       mutate({ type: "link", url: shareIntent.text });
+      invalidateAllBookmarks();
     }
   }, []);
 
-- 
cgit v1.3-1-g0d28

