fix: improve TanStack Query client setup and fix queryKey bug (#32422)

This commit is contained in:
yyh
2026-03-01 16:32:42 +08:00
committed by GitHub
parent 00e52796e6
commit 6a3db151a8
4 changed files with 5 additions and 7 deletions

View File

@ -653,7 +653,7 @@ export const useMutationClearAllTaskPlugin = () => {
export const usePluginManifestInfo = (pluginUID: string) => {
return useQuery({
enabled: !!pluginUID,
queryKey: [[NAME_SPACE, 'manifest', pluginUID]],
queryKey: [NAME_SPACE, 'manifest', pluginUID],
queryFn: () => getMarketplace<{ data: { plugin: PluginInfoFromMarketPlace, version: { version: string } } }>(`/plugins/${pluginUID}`),
retry: 0,
})