Coder Social home page Coder Social logo

Comments (6)

ankeetmaini avatar ankeetmaini commented on July 24, 2024 3

Closing this because of a lack of response. Hoping you figured out!

from react-infinite-scroll-component.

AmauryLiet avatar AmauryLiet commented on July 24, 2024 1

@ankeetmaini
I just spent some time facing the same issue:
It could be reproduced with a next function being too fast (simply a setState with mocked data)
I "fixed" the issue by simulating network latence with a setTimeout(...).

By analysing the component state, it appeared that state.actionTriggered remains true until the user scrolls up again.

Hoping this gives you more insight on the bug ;)

from react-infinite-scroll-component.

ankeetmaini avatar ankeetmaini commented on July 24, 2024

Hi @ssageghi can you try the component in the demo here? http://ankeetmaini.github.io/react-infinite-scroll-component/

It appears to be loading fine, could you check if your next function is called when the scroll is near the bottom. Can you checkout the examples from this location and see if you've used it the same way?
https://github.com/ankeetmaini/react-infinite-scroll-component/blob/master/demos/no-height.js#L62

from react-infinite-scroll-component.

ssageghi avatar ssageghi commented on July 24, 2024

I try the demo and it's okay
next function doesn't call in my app
and I use the same way

from react-infinite-scroll-component.

ankeetmaini avatar ankeetmaini commented on July 24, 2024

can you show me your code?

from react-infinite-scroll-component.

VinayakBagaria avatar VinayakBagaria commented on July 24, 2024

@AmauryLiet Can you provide a code snippet for your fix on the issue? Loader doesn't come on fast scroll.

from react-infinite-scroll-component.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.