mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 08:53:51 +00:00
refactor: use memoised selector
This commit is contained in:
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(
|
||||
|
||||
Reference in New Issue
Block a user