We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff4df43 commit c32c081Copy full SHA for c32c081
src/hooks/useLoader.ts
@@ -74,7 +74,7 @@ export function useLoader<R>({initial, ...options}: CacheOptions<R>): R {
74
type Callback = () => void;
75
76
function useStableCallback(callback: Callback): Callback {
77
- const ref = useRef<Callback>();
+ const ref = useRef<Callback>(undefined);
78
79
useEffect(() => {
80
ref.current = callback;
0 commit comments