Cancel debounced and throttled functions #7060
Labels
1 - assigned
Issues that are assigned to a sprint and a team member.
estimate - 3
A day or two of work, likely requires updates to tests.
p - low
Issue is non core or affecting less that 10% of people using the library
refactor
Issues tied to code that needs to be significantly reworked.
Milestone
Description
We need to cancel all debounced and throttled functions when the component is disconnected or when the component no longer needs to handle the debounced function.
Proposed Advantages
Debounced functions no longer happen after the component is removed from the DOM.
Which Component
Throttle
Debounce
Relevant Info
https://lodash.com/docs/4.17.15#debounce
https://lodash.com/docs/4.17.15#throttle
The text was updated successfully, but these errors were encountered: