A React hook for adding an event listener for window scroll
Arguments | Type | Description | Default value |
---|---|---|---|
callback | function | Callback function which needs to run on unmount | undefined |
when | boolean | When the event handler should be active | true |
isLayoutEffect | boolean | Should it use layout effect. | false |
No return value.
Join our discord server! You can click the floating discord icon at the bottom right of the screen and chat with us!