siberiacancode / reactuse

🚀 the largest and most useful hook library
https://siberiacancode.github.io/reactuse/
MIT License
224 stars 40 forks source link

[fix]: useInfiniteScroll. direction, distance params #217

Closed Ediand11 closed 3 months ago

Ediand11 commented 3 months ago

Исправил проблему: когда ты используешь const { ref, isLoading } = useInfiniteScroll(() => console.log('infinite scroll'), {distance: 100, direction: 'top'}); параметры distance всегда равны 10, а direction всегда bottom.