1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-20 21:54:58 -04:00

Convert Log Events to React Query

This commit is contained in:
Mark McDowall
2025-02-27 20:20:56 -08:00
parent 5d7c94f8e9
commit 5342416659
20 changed files with 585 additions and 261 deletions
@@ -11,7 +11,10 @@ type AddSeriesPayload = AddSeries & AddSeriesOptions;
export const useLookupSeries = (query: string) => {
return useApiQuery<AddSeries[]>({
path: `/series/lookup?term=${query}`,
path: '/series/lookup',
queryParams: {
term: query,
},
queryOptions: {
enabled: !!query,
// Disable refetch on window focus to prevent refetching when the user switch tabs