Skip to content

Commit c32c081

Browse files
committed
Fix typing
1 parent ff4df43 commit c32c081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function useLoader<R>({initial, ...options}: CacheOptions<R>): R {
7474
type Callback = () => void;
7575

7676
function useStableCallback(callback: Callback): Callback {
77-
const ref = useRef<Callback>();
77+
const ref = useRef<Callback>(undefined);
7878

7979
useEffect(() => {
8080
ref.current = callback;

0 commit comments

Comments
 (0)