Last 12 weeks · 0 commits
4 of 6 standards met
Repository: sindresorhus/throttleit. Description: Throttle a function to limit its execution rate Stars: 105, Forks: 19. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v2.1.0 (1y ago). Open PRs: 0, open issues: 0. Last activity: 1y ago. Community health: 85%. Top contributors: sindresorhus, TooTallNate, darsain, tj, calvinfo, juliangruber, mrmartineau.
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.