This seems like an anti-pattern for how lodash.debounce is meant to be used. Sure it 'works', but new debounce functions are constantly being run. As a side effect, the additional options don't work. Try out using {maxWait: 500} (should wait at most, 500ms before firing the callback), it doesn't work.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This seems like an anti-pattern for how
lodash.debounce
is meant to be used. Sure it 'works', but newdebounce
functions are constantly being run. As a side effect, the additional options don't work. Try out using{maxWait: 500}
(should wait at most, 500ms before firing the callback), it doesn't work.