mirror of
https://github.com/streamich/react-use.git
synced 2026-01-25 14:17:16 +00:00
fix: always return something from effect
This commit is contained in:
parent
d18d2d8683
commit
33554262ef
@ -24,6 +24,7 @@ const useScrolling = (ref: RefObject<HTMLElement>): boolean => {
|
||||
}
|
||||
};
|
||||
}
|
||||
return () => {};
|
||||
}, [ref.current]);
|
||||
|
||||
return scrolling;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user