ScrollableList: delete unused scrollerRef

This commit is contained in:
Alex Gleason 2022-06-01 18:00:09 -05:00
parent e4b95534dc
commit 8052d5040a
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -76,7 +76,6 @@ const ScrollableList = React.forwardRef<VirtuosoHandle, IScrollableList>(({
const scrollIndexKey = `soapbox:scrollIndex:${location.pathname}`;
const scrollIndex = Number(sessionStorage.getItem(scrollIndexKey));
const initialIndex = useRef(scrollIndex);
const scroller = useRef<Window | HTMLElement | null>(null);
/** Normalized children */
const elements = Array.from(children || []);
@ -171,7 +170,6 @@ const ScrollableList = React.forwardRef<VirtuosoHandle, IScrollableList>(({
Item,
Footer: loadMore,
}}
scrollerRef={c => scroller.current = c}
/>
);