Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix: Less aggressive invalidation when a bookmark is deleted

MohamedBassemeee128c1708c
diff --git a/packages/web/app/dashboard/bookmarks/components/BookmarkOptions.tsx b/packages/web/app/dashboard/bookmarks/components/BookmarkOptions.tsx
index e6d0cd15..14515191 100644
--- a/packages/web/app/dashboard/bookmarks/components/BookmarkOptions.tsx
+++ b/packages/web/app/dashboard/bookmarks/components/BookmarkOptions.tsx
@@ -37,7 +37,7 @@ export default function BookmarkOptions({ bookmark }: { bookmark: ZBookmark }) {
const [isTextEditorOpen, setTextEditorOpen] = useState(false);
- const invalidateBookmarksCache = api.useUtils().bookmarks.invalidate;
+ const invalidateBookmarksCache = api.useUtils().bookmarks.getBookmarks.invalidate;
const onError = () => {
toast({