Skip to content

Conversation

@tam315
Copy link
Contributor

@tam315 tam315 commented Jul 13, 2018

Hi @karl-run , thanks for useful component.
I'm using your component to implement the infinite scroll.

I found that the callback is not called sometimes even if debounce is set to 0(ms) or like 1(ms).

I'm not sure why callback is not invoked though,
but it works perfect if without using lodash.

So, I made PR to skip lodash implementation if debounce is set to 0.
could you accept this ?

thank you.

@karl-run
Copy link
Owner

This change makes a lot of sense if there are some weird behaviours when debounce is 0. I've only used this with debounce values 100-500. Good catch!

@karl-run karl-run merged commit 6a6f7e4 into karl-run:master Jul 13, 2018
karl-run added a commit that referenced this pull request Jul 13, 2018
@karl-run
Copy link
Owner

I have released 1.3.0 with your changes.

@tam315
Copy link
Contributor Author

tam315 commented Jul 13, 2018

wow! super fast!!
Thanks a lot.

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