FastGPT/packages/web/hooks/useRefresh.ts
Archer b1aafde7c9
Some checks failed
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Waiting to run
Deploy image by kubeconfig / build-fastgpt-docs-images (push) Has been cancelled
Deploy image to vercel / deploy-production (push) Has been cancelled
Deploy image by kubeconfig / update-docs-image (push) Has been cancelled
4.8.1 test-fix (#1561)
2024-05-22 18:49:39 +08:00

10 lines
152 B
TypeScript

import { useBoolean } from 'ahooks';
export const useRefresh = () => {
const [_, { toggle }] = useBoolean();
return {
refresh: toggle
};
};