Skip to content

Commit

Permalink
Merge branch 'main' into MP-1619-measure-bcd-table-usage
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Nov 4, 2024
2 parents 92ac2be + c9377b7 commit 83cd317
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export function useViewed(
) {
const timer = useRef<ViewedTimer>({ timeout: null });
const isVisible = usePageVisibility();
const [node, setNode] = useState<HTMLElement | undefined>();
const [node, setNode] = useState<HTMLElement>();
const isIntersecting = useIsIntersecting(node, intersectionObserverOptions);

useEffect(() => {
Expand All @@ -301,7 +301,6 @@ export function useViewed(
timer.current = {
timeout: window.setTimeout(() => {
timer.current = { timeout: -1 };
setNode(undefined);
callback();
}, 1000),
};
Expand Down

0 comments on commit 83cd317

Please sign in to comment.