diff options
| author | Mohamed Bassem <me@mbassem.com> | 2024-12-28 12:30:24 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2024-12-28 12:30:24 +0000 |
| commit | 7956e9fa6772ab57a0794fb7cba7e9d9c0bd7878 (patch) | |
| tree | 10d6e47afed8be007361cd40ec8b05fc52d6d4d9 /packages/shared-react | |
| parent | 7dd5b2bc8751911f86448e6c4619b2583d9a4b53 (diff) | |
| download | karakeep-7956e9fa6772ab57a0794fb7cba7e9d9c0bd7878.tar.zst | |
feat: Implement the all highlights page. Fixes #620
Diffstat (limited to 'packages/shared-react')
| -rw-r--r-- | packages/shared-react/hooks/highlights.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/shared-react/hooks/highlights.ts b/packages/shared-react/hooks/highlights.ts index 299ed697..257a1ed4 100644 --- a/packages/shared-react/hooks/highlights.ts +++ b/packages/shared-react/hooks/highlights.ts @@ -10,6 +10,7 @@ export function useCreateHighlight( apiUtils.highlights.getForBookmark.invalidate({ bookmarkId: req.bookmarkId, }); + apiUtils.highlights.getAll.invalidate(); return opts[0]?.onSuccess?.(res, req, meta); }, }); @@ -25,6 +26,7 @@ export function useUpdateHighlight( apiUtils.highlights.getForBookmark.invalidate({ bookmarkId: res.bookmarkId, }); + apiUtils.highlights.getAll.invalidate(); return opts[0]?.onSuccess?.(res, req, meta); }, }); @@ -40,6 +42,7 @@ export function useDeleteHighlight( apiUtils.highlights.getForBookmark.invalidate({ bookmarkId: res.bookmarkId, }); + apiUtils.highlights.getAll.invalidate(); return opts[0]?.onSuccess?.(res, req, meta); }, }); |
