feat: refactor link menu (#2025)

* link markview - WIP

* WIP

* feat: refactor links

* cleanup
This commit is contained in:
Philip Okugbe
2026-03-15 17:08:59 +00:00
committed by GitHub
parent 97c459be67
commit 89b94e5d19
21 changed files with 944 additions and 219 deletions
@@ -1,4 +1,4 @@
import { useQuery, UseQueryResult } from "@tanstack/react-query";
import { keepPreviousData, useQuery, UseQueryResult } from "@tanstack/react-query";
import {
searchAttachments,
searchPage,
@@ -32,6 +32,7 @@ export function useSearchSuggestionsQuery(
staleTime: 60 * 1000, // 1min
queryFn: () => searchSuggestions(queryParams),
enabled: preload || !!params.query,
placeholderData: keepPreviousData,
});
}