n8tb1t / use-scroll-position

Use scroll position ReactJS hook done right

Home Page:https://n8tb1t.github.io/use-scroll-position/navbar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Old eventlisteners should be removed when the dependencies change.

straxico opened this issue · comments

When deps change add new event listeners but don't remove the old event listeners .so if deps change multiple times we will have many event listeners