ScrollableList: delete unused scrollerRef
This commit is contained in:
parent
e4b95534dc
commit
8052d5040a
1 changed files with 0 additions and 2 deletions
|
@ -76,7 +76,6 @@ const ScrollableList = React.forwardRef<VirtuosoHandle, IScrollableList>(({
|
||||||
const scrollIndexKey = `soapbox:scrollIndex:${location.pathname}`;
|
const scrollIndexKey = `soapbox:scrollIndex:${location.pathname}`;
|
||||||
const scrollIndex = Number(sessionStorage.getItem(scrollIndexKey));
|
const scrollIndex = Number(sessionStorage.getItem(scrollIndexKey));
|
||||||
const initialIndex = useRef(scrollIndex);
|
const initialIndex = useRef(scrollIndex);
|
||||||
const scroller = useRef<Window | HTMLElement | null>(null);
|
|
||||||
|
|
||||||
/** Normalized children */
|
/** Normalized children */
|
||||||
const elements = Array.from(children || []);
|
const elements = Array.from(children || []);
|
||||||
|
@ -171,7 +170,6 @@ const ScrollableList = React.forwardRef<VirtuosoHandle, IScrollableList>(({
|
||||||
Item,
|
Item,
|
||||||
Footer: loadMore,
|
Footer: loadMore,
|
||||||
}}
|
}}
|
||||||
scrollerRef={c => scroller.current = c}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue