Skip to content
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

loadMore is not trigger when page init(content list is not enough to fill a screen) #264

Open
jinmawang opened this issue Nov 30, 2020 · 4 comments

Comments

@jinmawang
Copy link

jinmawang commented Nov 30, 2020

Describe the bug
loadMore not triggered when page init(content list is not enough to fill a screen),and loader triggered.
To Reproduce
Please clone your layout and use of react-infinite-scroller by forking this Code Sandbox and linking it here. Doing so will massively expedite getting the bug fixed! 👊

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Device (please complete the following information):

  • OS: [e.g. Mac]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]
@ljhyeok
Copy link

ljhyeok commented Dec 7, 2020

i have a same issue....

@achepukov
Copy link

I also faced same issue, and implemented some workaround:

  1. replace loader with a link: <a onClick={loadMore}>click here to load more</a>
  2. implemented loadMore the way that is simulates pull to down
const loadMore = () => {
    ref.current.scrollTo(0, 10);
};

Where ref is a pointer to wrapper div.

Sure, it's a bug, and needs to be fixed, but just for case this workaround helps somebody, I share it. :)

@Celeste72
Copy link

This bug is still there, I solved this problem by increasing the limit value.o(╥﹏╥)o

@yuujitaka
Copy link

Celeste72

can you explain? what limit?

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

No branches or pull requests

5 participants