aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared-react/hooks/lists.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--packages/shared-react/hooks/lists.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/shared-react/hooks/lists.ts b/packages/shared-react/hooks/lists.ts
index 10633a08..46477228 100644
--- a/packages/shared-react/hooks/lists.ts
+++ b/packages/shared-react/hooks/lists.ts
@@ -28,6 +28,9 @@ export function useEditBookmarkList(
onSuccess: (res, req, meta) => {
apiUtils.lists.list.invalidate();
apiUtils.lists.get.invalidate({ listId: req.listId });
+ if (res.type === "smart") {
+ apiUtils.bookmarks.getBookmarks.invalidate({ listId: req.listId });
+ }
return opts[0]?.onSuccess?.(res, req, meta);
},
});