Skip to content

Commit 050feda

Browse files
committed
fix: type error
1 parent 229b6cb commit 050feda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const useTask = <T extends (...args: any[]) => Promise<void>>(
1616
fn: T,
1717
): TaskHandler<T> => {
1818
let loading = false;
19-
const loadingRef = customRef((track, trigger) => {
19+
const loadingRef = customRef<boolean>((track, trigger) => {
2020
return {
2121
get() {
2222
track();

0 commit comments

Comments
 (0)