Misleading example in debounce docs #7529
optimized-riyan
started this conversation in
Report issues other than bug
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the debouce example in the docs: debounce, the example uses the interval() function as the durationSelector.
But as per my knowledge, on every new emission from clicks pipe, debounce will resubscribe the duration selector and since that is a cold observable, the interval will be a new one. However since only the first emission matters, we should be using the timer function right?
While I was trying to understand debounce this example made me scratch my head a lot. I hope fixing this will help newbies out.
Beta Was this translation helpful? Give feedback.
All reactions