Skip to content

Commit

Permalink
chore: remove console.warn
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed May 19, 2023
1 parent df36f89 commit c979409
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/remix-react/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ function usePrefetchBehavior<T extends HTMLAnchorElement>(
};
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();
Expand Down

0 comments on commit c979409

Please sign in to comment.