mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 17:38:04 +08:00
fix: improve TanStack Query client setup and fix queryKey bug (#32422)
This commit is contained in:
@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user