GitShow/developit/decko
developit

decko

:dash: The 3 most useful ES7 decorators: bind, debounce and memoize

by developit
debouncedecoratorsmemoizationmemoizethrottle-calls
Star on GitHubForkWebsitenpm

JavaScript

1.0k stars34 forks6 contributorsQuiet · 7y agoSince 20151.2.0MIT

Meet the team

See all 6 on GitHub →
developit
developit32 contributions
Hotell
Hotell2 contributions
bryanjenningz
bryanjenningz1 contribution
DanielRuf
DanielRuf1 contribution
cronon
cronon1 contribution
dalaidunc
dalaidunc1 contribution

Languages

View on GitHub →
JavaScript96.2%
TypeScript3.8%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 7y ago
See all on GitHub →
vpzomtrrfrt
Issues with TypescriptOpenIssue

Attempting to use throws this compilation error:

vpzomtrrfrt · 6y ago
precious
@bind decorator bug when super method is calledOpenIssue

This snippet demonstrates that the decorator does not work correctly on second method call if that method invokes super method which in turn is also decorated: Output:

precious · 7y ago
developit
fixes #12 - bug in "bind" decorator on super method call from subclass methodOpenPR
developit · 7y ago

Recent fixes

View closed PRs →
vahnag
[DOCS] Better options documentaion ClosedIssue

These things are unclear from the current documentation about the options: How to use options What are the default values It is possible to look them up in source code, but I think, it would be nice to have them in docs.

vahnag · 1y ago
ivancuric
Rename debounce to throttle, alias debounceMergedPR

A short term solution. Long term I'd prefer to see a real debounce included, since I use that way more often personally.

ivancuric · 2y ago
agudulin
Non-primitive function parametersClosedIssue

The current implementation of memoize doesn't work correctly with non-primitive function parameters. E.g. look at this test: Do you think it would make sense to print a corresponding error message when they try to pass any non-primitive ref as a parameter? could be a solution for this problem (for memory leak also). cc @stryju

agudulin · 5y ago
Structured data for AI agents

Repository: developit/decko. Description: :dash: The 3 most useful ES7 decorators: bind, debounce and memoize Stars: 1037, Forks: 34. Primary language: JavaScript. Languages: JavaScript (96.2%), TypeScript (3.8%). License: MIT. Homepage: https://developit.github.io/decko/ Topics: debounce, decorators, memoization, memoize, throttle-calls. Latest release: 1.2.0 (9y ago). Open PRs: 1, open issues: 5. Last activity: 7y ago. Community health: 42%. Top contributors: developit, Hotell, bryanjenningz, DanielRuf, cronon, dalaidunc.

·@ofershap

Replace github.com with gitshow.dev