Coder Social home page Coder Social logo

Comments (5)

mhd999 avatar mhd999 commented on July 24, 2024 23

There is Style props allow you to over ride the default css.

Style: any style which you want to override

style={{ overflowY: 'hidden' }}

from react-infinite-scroll-component.

Juliomerlos avatar Juliomerlos commented on July 24, 2024 1

I think this is not a real solution because wrapping the infinite scroll with a div with overflow:hidden makes the infinite scroll stop working and you hace to implement many other things, which is the reason you are using infinite-scroll-component.

from react-infinite-scroll-component.

ankeetmaini avatar ankeetmaini commented on July 24, 2024

Hi @mhd999 as far as I can think, removing scroll will not trigger new fetches of the data. Which scrollbar are you referring too?

from react-infinite-scroll-component.

mhd999 avatar mhd999 commented on July 24, 2024

My answer above is just about how to override default style, but i agree with no scroll bar no fetch will be triggered.

But to solve this issue you can wrap the infinite scroll with a div with overflow:hidden this will allow scrolling without scroll bar.

from react-infinite-scroll-component.

cassioseffrin avatar cassioseffrin commented on July 24, 2024

The @mhd999 hack have worked very well. +1

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.