garthenweb / react-stickup

React components to stick elements at the top of the page while scrolling
http://garthenweb.github.io/react-stickup
MIT License
24 stars 4 forks source link

hooks should allow more control over updates #22

Closed garthenweb closed 5 years ago

garthenweb commented 5 years ago

Proposal:

  const isScrollingDown = useScroll(
    ({ isScrollingDown }) => isScrollingDown,
  )

should only fire in case isScrollingDown changes.

garthenweb commented 5 years ago

Wrong repo, moved to https://github.com/garthenweb/react-viewport-utils/issues/11