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

refactor(ctx): adjust the usage of throttle #289

Closed
wants to merge 1 commit into from
Closed

Conversation

atzcl
Copy link

@atzcl atzcl commented Nov 1, 2022

Description

Upstream @antfu/utils upgraded the throttle-debounce dependency, resulting in abnormal usage of throttle used by writeConfigFilesThrottled

Error message

TypeError: callback.apply is not a function

Additional context

where the problem is:antfu/utils@4bd2e2b#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R61

The throttle of throttle-debounce is in the corresponding version of the code

old:https://github.com/niksy/throttle-debounce/blob/v3.0.1/throttle.js#L19
now:https://github.com/niksy/throttle-debounce/blob/master/throttle.js#L24

@antfu
Copy link
Member

antfu commented Nov 1, 2022

Thank you. This was a regression, reverted throttle-debounce

@antfu antfu closed this Nov 1, 2022
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

Successfully merging this pull request may close these issues.

2 participants