Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

throttle support leading and trailing #329

Open
ahaoboy opened this issue Jul 30, 2024 · 2 comments
Open

throttle support leading and trailing #329

ahaoboy opened this issue Jul 30, 2024 · 2 comments

Comments

@ahaoboy
Copy link

ahaoboy commented Jul 30, 2024

https://lodash.com/docs/4.17.15#throttle

@raon0211
Copy link
Collaborator

raon0211 commented Aug 3, 2024

I guess using trailing and leading is not a major use case, maybe we might add them in our compat library, es-toolkit/compat.

@pfe-nazaries
Copy link

pfe-nazaries commented Aug 30, 2024

I just changed from Lodash to your library and spotted this issue on my frontend "almost real time search" and is annoying for the user missing (depending on the type speed) the last characters of the search that will not trigger the API call without the trailing.

It would be highly appreciated if you implement it instead of using the compat layer. Also the type definition for the options (leading, trailing) is missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants