How to prevent components from constantly remounting when lazy-loading with react-intersection-observer? – Reactjs
I am lazy-loading components on a React page by using react-intersection-observer: import React from "react"; import { useInView } from "react-intersection-observer"; const LazyComponent = ({ LoadableComponent, ...rest }) => { const { ref, inView } = useInView({ rootMargin: "50px 0px"…