ignore react-use errors for now
This commit is contained in:
@@ -7,6 +7,9 @@ type Props = {
|
||||
|
||||
function LoadMoreHelper({ handleLoad }: Props) {
|
||||
const intersectionRef = useRef<HTMLDivElement>(null);
|
||||
// TODO remove when react-use is fixed
|
||||
// see https://github.com/streamich/react-use/issues/2612
|
||||
// @ts-expect-error
|
||||
const intersection = useIntersection(intersectionRef, {
|
||||
root: null,
|
||||
threshold: 1,
|
||||
|
||||
@@ -46,6 +46,9 @@ export function ContentOutline({ scroller, panelId }: { scroller: HTMLElement |
|
||||
);
|
||||
const styles = useStyles2(getStyles, contentOutlineExpanded);
|
||||
const scrollerRef = useRef(scroller || null);
|
||||
// TODO remove when react-use is fixed
|
||||
// see https://github.com/streamich/react-use/issues/2612
|
||||
// @ts-expect-error
|
||||
const { y: verticalScroll } = useScroll(scrollerRef);
|
||||
const { outlineItems } = useContentOutlineContext() ?? { outlineItems: [] };
|
||||
const [activeSectionId, setActiveSectionId] = useState(outlineItems[0]?.id);
|
||||
|
||||
Reference in New Issue
Block a user