civiccc / civiccc/react-waypoint

FireOnce Prop

Open
#321 7 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.