Giter Site home page Giter Site logo

pageSize not updating about table HOT 4 CLOSED

DimitryDushkin avatar DimitryDushkin commented on August 18, 2024
pageSize not updating

from table.

Comments (4)

tannerlinsley avatar tannerlinsley commented on August 18, 2024

How are you setting/changing pageSize exactly? Can you post your component here?

from table.

DimitryDushkin avatar DimitryDushkin commented on August 18, 2024

I've developed custom pagination and this behaviour appeared after update from 3.2.1 to 4.4.1.
This is how I'm updating pageSize — https://gist.github.com/DimitryDushkin/ff76572d5f1efe2b642206171a5290fb#file-reacttablepagination-jsx-L78

I'm sure that correct number is passed to this function.

from table.

tannerlinsley avatar tannerlinsley commented on August 18, 2024

That's strange. This should work from what I saw in your gist. What props are you sending the table when you render it?

from table.

DimitryDushkin avatar DimitryDushkin commented on August 18, 2024

@tannerlinsley sorry for worry.

I've set pageSize prop by myself instead of defaultPageSize that's why changing it via pagination component didn't have effect.

from table.

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.