Last 12 weeks · 2 commits
4 of 6 standards met
We are using your excellent library in a React Native project, and stumbled onto an issue where some native elements would trigger the throttled functions without any callback. This would trigger a unhandled exception that would crashes the application. To fix this I simply added the optional chaining operator to the argument, so that if is not set - it will not be called.
Repository: sindresorhus/throttleit. Description: Throttle a function to limit its execution rate Stars: 108, Forks: 19. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v3.0.0 (1mo ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, TooTallNate, darsain, tj, calvinfo, juliangruber, mrmartineau.