refactor: use memoised selector

This commit is contained in:
Carlos Valente
2025-02-22 09:01:15 +01:00
committed by Carlos Valente
parent ba74622569
commit 8c593b3487
@@ -34,7 +34,7 @@ function EventRow(props: EventRowProps) {
const ownRef = useRef<HTMLTableRowElement>(null);
const [isVisible, setIsVisible] = useState(false);
const { openMenu } = useCuesheetTableMenu();
const openMenu = useCuesheetTableMenu((store) => store.openMenu);
useLayoutEffect(() => {
const observer = new IntersectionObserver(