Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyan1998 committed Nov 27, 2023
1 parent 78e7f0d commit 01571d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dinky-web/src/hooks/useHookRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function useHookRequest<TData extends { data: any }, TParams extends any[]>(
const [loading, setLoading] = useState<boolean>(false);
const [error, setError] = useState<string | null>();
const status = useRef<boolean>(false);
const pollingIntervalTimer = useRef<NodeJS.Timeout|null>();
const pollingIntervalTimer = useRef<NodeJS.Timeout | null>();

const {
manual = false,
Expand Down Expand Up @@ -103,7 +103,7 @@ function useHookRequest<TData extends { data: any }, TParams extends any[]>(
const doRun = async (params: TParams) => {
let finish = false;
try {
console.log(pollingInterval)
console.log(pollingInterval);
//延迟显示loading,防止刷新时闪屏
if (loadingDelay) {
setTimeout(() => {
Expand Down

0 comments on commit 01571d8

Please sign in to comment.