Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onLeave={({currentPosition}) => (
currentPosition === Waypoint.above && onAfter(href)
)}
topOffset={10}
onLeave={({ currentPosition }) => (
currentPosition === Waypoint.above && onAfter(href)
)}
topOffset={10}
onEnter={({ previousPosition }) => (
previousPosition === Waypoint.above && onBefore(href)
)}
onLeave={({ currentPosition }) => (
onEnter={({previousPosition}) => (
previousPosition === Waypoint.above && onBefore(href)
)}
onLeave={({currentPosition}) => (
onWaypointChange(event) {
if (event.currentPosition === Waypoint.above || event.currentPosition === Waypoint.inside) {
this.loadData();
}
}
onEnter={({previousPosition}: Waypoint.CallbackArgs) => {
if (previousPosition === Waypoint.below) {
this.fetchNextCodepoints()
}
}}
key={codepoints.result.page}