Open stepan662 opened 3 years ago
When I pass getVisibleRange to other component and use in event handler it throws error:
It can be fixed by binding it to the reference object first:
<Component getVisibleRange={reactListRef.current?.getVisibleRange.bind(reactListRef.current)} />
In child component I'm using it like this:
window.addEventListener('scroll', () => getVisibleRange());
It's quite inconvenient and it took me quite a bit of trying to make it work.
Version 0.8.16
PS: This library is great :)
When I pass getVisibleRange to other component and use in event handler it throws error:
It can be fixed by binding it to the reference object first:
In child component I'm using it like this:
It's quite inconvenient and it took me quite a bit of trying to make it work.
Version 0.8.16
PS: This library is great :)