From c979409e461c644c1b640c89e4a2ebe350caa2fc Mon Sep 17 00:00:00 2001 From: Logan McAnsh Date: Fri, 19 May 2023 17:56:34 -0400 Subject: [PATCH] chore: remove console.warn Signed-off-by: Logan McAnsh --- packages/remix-react/components.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/remix-react/components.tsx b/packages/remix-react/components.tsx index 1d271439a21..6feea0e1576 100644 --- a/packages/remix-react/components.tsx +++ b/packages/remix-react/components.tsx @@ -254,7 +254,6 @@ function usePrefetchBehavior( }; let observer = new IntersectionObserver(callback, { threshold: 0.5 }); if (ref.current) observer.observe(ref.current); - else console.warn("No element to observe"); return () => { observer.disconnect();