dify/web/app/components/plugins/hooks.ts

16 lines
273 B
TypeScript
Raw Normal View History

2024-10-24 14:21:12 +08:00
import { useRequest } from 'ahooks'
export const useCheckInstallStatus = () => {
const { data, run, cancel } = useRequest(async () => {}, {
manual: true,
pollingInterval: 5000,
pollingErrorRetryCount: 2,
})
return {
data,
run,
cancel,
}
}