-
Notifications
You must be signed in to change notification settings - Fork 37
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
Debounce: make it possible to inmediately return the initial value #990
base: main
Are you sure you want to change the base?
Conversation
Run & review this pull request in StackBlitz Codeflow. |
|
any chance you can rebase? just merged something that'll fix parts of CI |
let lastValue: Value; | ||
let timer: number; | ||
let state = new TrackedValue<Value>(); | ||
|
||
/** | ||
* Whether the initial value has been returned inmediately or not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use case: