Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospassos committed Jan 15, 2025
1 parent ff4df43 commit c32c081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function useLoader<R>({initial, ...options}: CacheOptions<R>): R {
type Callback = () => void;

function useStableCallback(callback: Callback): Callback {
const ref = useRef<Callback>();
const ref = useRef<Callback>(undefined);

useEffect(() => {
ref.current = callback;
Expand Down

0 comments on commit c32c081

Please sign in to comment.