ggascoigneandTanner Linsley ead3599378 Fix pagination resetting to page zero with manualPagination (#1369)
* Fix pagination resetting to page zero with manualPagination

To be honest I'm not sure what this useLayoutEffect is there to do.
It has no visible effect if you don't use manualPagination, and if you
do it, simply jumps you back to the first page, defeating the point of
you having control of the pagination.

* Conditionally reset page on data change

Rather disable the whole page reset when filters, groupBy or sortBy
change, just because I wanted to disable the page reset on data change,
make that bit be conditional.

With that in mind, usePagination now accepts a
disablePageResetOnDataChange parameter.
2019-07-01 09:36:42 -06:00
2019-01-31 12:54:56 -07:00
2019-02-11 13:19:27 -07:00
2019-02-11 09:33:34 -07:00
2019-04-29 12:39:48 -06:00
2019-03-12 11:08:24 -06:00
2018-05-24 10:24:29 -06:00
2017-05-11 19:03:31 -06:00
2019-04-26 22:28:25 -06:00

React Table

Hooks for building lightweight, fast and extendable datagrids for React

Join the community on Spectrum

⚠️ Version 7

This documentation is for Version 7, which is under active development and currently in an alpha state.

Version 6

Looking for v6 information?

Features

Versions

Sponsors

React Table v7 is mostly planned and I (@tannerlinsley) am looking for Patreon support to make it a reality. It will require a decent time commitment on my part to not only implement it, but also help people migrate and continue to maintain it. If you would like to contribute to my Patreon goal for v7 and beyond, visit my Patreon and help me out!.

Table of Contents

Installation

  1. Install React Table as a dependency
# Yarn
$ yarn add react-table

# NPM
$ npm install react-table
  1. Import the react-table module
import { useReactTable } from 'react-table'

Examples

React Table v7 Sandbox

Documentation

Documentation for v7 is coming soon. If you're looking for the v6 documentation, click here

Contributing

To suggest a feature, create an issue if it does not already exist. If you would like to help develop a suggested feature follow these steps:

  • Fork this repo
  • Install dependencies with $ yarn
  • Auto-build files as you edit with $ yarn run watch
  • Implement your changes to files in the src/ directory
  • Run the React Story locally with $ yarn run docs
  • View changes as you edit docs/src
  • Submit PR for review

Package Utilities

  • $ yarn run watch Watches files and builds via babel
  • $ yarn run docs Runs the storybook server
  • $ yarn run test Runs the test suite
S
Description
No description provided
Readme MIT
14 MiB
Languages
JavaScript 100%