civiccc / civiccc/react-waypoint
Waypoint doesn't trigger on list made with .map
Open
- Dominant language
- JavaScript
- Stars
- 4k
- Forks
- 206
- PR merge metrics
- No merged PRs in 30d
Description
A fellow dev and I have tried for hours now.
There seems to be no way to get Waypoint to work in components that create lists. We also tried putting the waypoint on the main page but it seems to think it's inside even after the list populates. I am now trying to force it with position absolute and same.
Here's the component for reference:
```
const EventsList: React.FC = ({ events, handleEnd, lang, distanceMetric, loading, t, ad }) => {
return (
Events
{events.map(event => (
))}
handleEnd({ previousPosition, currentPosition })} />
{ad}
{loading ? {t('Loading')} : {t('noevent')}}
);
};
```
Im using 10.1.0 is this a known issue or am I doing something wrong.
Contributor guide
Assessment
This issue has not been assessed yet.