From d9059ca7b2489db2f3f9352d618ae101cb5a48ba Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Tue, 16 Dec 2025 10:56:40 +0000 Subject: [PATCH] ignore react-use errors for now --- .../app/features/alerting/unified/rule-list/LoadMoreHelper.tsx | 3 +++ public/app/features/explore/ContentOutline/ContentOutline.tsx | 3 +++ 2 files changed, 6 insertions(+) diff --git a/public/app/features/alerting/unified/rule-list/LoadMoreHelper.tsx b/public/app/features/alerting/unified/rule-list/LoadMoreHelper.tsx index b21356a6742..cf34bf09f3a 100644 --- a/public/app/features/alerting/unified/rule-list/LoadMoreHelper.tsx +++ b/public/app/features/alerting/unified/rule-list/LoadMoreHelper.tsx @@ -7,6 +7,9 @@ type Props = { function LoadMoreHelper({ handleLoad }: Props) { const intersectionRef = useRef(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, diff --git a/public/app/features/explore/ContentOutline/ContentOutline.tsx b/public/app/features/explore/ContentOutline/ContentOutline.tsx index 3ee75dcda44..2f2980ff8d9 100644 --- a/public/app/features/explore/ContentOutline/ContentOutline.tsx +++ b/public/app/features/explore/ContentOutline/ContentOutline.tsx @@ -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);