mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-21 08:32:23 +00:00
add test thing if anyone wants it
This commit is contained in:
parent
c34ce8a270
commit
e93eaa78e3
1 changed files with 8 additions and 0 deletions
|
|
@ -47,6 +47,14 @@ export function LazyMediaCarousel({
|
||||||
|
|
||||||
const categoryName = category?.name || genre?.name || "";
|
const categoryName = category?.name || genre?.name || "";
|
||||||
|
|
||||||
|
// Test intersection observer
|
||||||
|
// useEffect(() => {
|
||||||
|
// // eslint-disable-next-line no-console
|
||||||
|
// console.log(
|
||||||
|
// `Carousel ${categoryName}: ${isIntersecting ? "loaded ✅" : "unloaded ❌"}`,
|
||||||
|
// );
|
||||||
|
// }, [isIntersecting, categoryName]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={targetRef as React.RefObject<HTMLDivElement>}>
|
<div ref={targetRef as React.RefObject<HTMLDivElement>}>
|
||||||
{isIntersecting ? (
|
{isIntersecting ? (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue