civiccc / civiccc/react-waypoint
FireOnce Prop
Open
- Dominant language
- JavaScript
- Stars
- 4k
- Forks
- 206
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice if you could pass in a prop for a waypoint to only fireOnce, afterwards it wouldn't fire again. I made my own wrapperelement because the use case has come up quite a bit. It should be a fairly simple implementation and would be quite useful. Alternatively you could have a fireCount prop in which you can state how many times the waypoint can fire onEnter/leave
Contributor guide
Assessment
This issue has not been assessed yet.