Skip to content

Commit

Permalink
stickyIndices can be dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitapilgrim committed Aug 24, 2021
1 parent 530c9c7 commit 10a03d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useVirtual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default <
const msDataRef = useRef<Measure[]>([]);
const userScrollRef = useRef(true);
const scrollToRafRef = useRef<number>();
const stickyIndicesRef = useRef(stickyIndices);
const stickyIndicesRef = useLatest(stickyIndices);
const durationRef = useLatest(scrollDuration);
const easingFnRef = useLatest(scrollEasingFunction);
const isItemLoadedRef = useRef(isItemLoaded);
Expand Down

0 comments on commit 10a03d4

Please sign in to comment.