Andros Rosa Llop and Tanner Linsley
2ecdfbd24e
[Fix] defaultGetResetPageDeps should listen to data, not rows ( #1658 )
...
Related to: https://github.com/tannerlinsley/react-table/issues/1657
Discussion: https://spectrum.chat/react-table/general/v7-maximum-update-depth-exceeded-usegroupby-useexpanded-with-usepagination~2c25e2b8-7a61-4c32-84b3-87db458701c2
Thanks to @iamjon for identifying usePagination was the culprit.
I then checked the last changes made to it, and noticed it was previously listening to data and now it listened to rows (which I believe is a new reference on each render), causing infinite loop on one of its effects.
I tested this change on my project and everything seems ok now.
2019-11-25 12:24:20 -07:00
Tanner Linsley
3187061041
Use effect dependency user call
2019-11-20 12:09:24 -07:00
Tanner Linsley
58028e45fc
Rename disableGrouping, remove propTypes, update Readme
2019-11-20 10:23:52 -07:00
tannerlinsley
bbfc6428b7
refactor(usetable/usetablestate): integrate useTableState into useTable
...
useTableState was an early and hasty abstraction that hasn't proved useful in many ways. Anything
you could do with useTableState, you could easily do using the same options (assuming they exist) in
the useTable hook. For this reason, state is now a first class citizen of the useTable hook, along
with more sane properties and option locations for anything pertaining to state.
2019-10-05 20:48:28 -06:00
tannerlinsley
0ef0bc4126
fix(userowselect): useRowSelect fixed to take into account filters
...
useRowSelect now takes into account filtered data when doing selectAll toggling and
isAllRowsSelected state.
2019-10-03 13:39:35 -06:00
Hugo Bove and Tanner Linsley
69e13b87c3
feat(useexpanded, usepagination): omit subRows from rows ( #1562 )
...
Added useExpanded 'expandSubRows' option
2019-10-02 06:51:14 -06:00
tannerlinsley
f552c94972
fix(usepagination): fix unstable callbacks
...
Closes #1549
2019-09-26 13:21:34 -06:00
tannerlinsley
dfad9151c3
fix(expandedrows): fix in-page row expansion for paginateExpandedRows
2019-09-13 07:33:53 -06:00
tannerlinsley
0aa55dac08
fix: fixed disablePageResetOnDataChangeRef dependencies
...
disablePageResetOnDataChangeRef will no longer trigger page resets when changed
2019-09-09 08:21:15 -06:00
tannerlinsley
b0d6169848
feat: added useColumnOrder + examples
2019-08-27 09:59:52 -06:00
tannerlinsley
f59efde6fe
fix: fix path getters, better plugin hook integration, renaming things
2019-08-19 16:38:42 -06:00
tannerlinsley
40884e9a44
style: lock prettier version, fix sorting example
2019-08-16 07:20:52 -06:00
tannerlinsley
d50ec588bc
fix(use-pagination): fixed use pagination pageIndex bug
...
Use pagination will no longer synchronously reset the pageIndex to 0 on mount
2019-08-15 09:55:22 -06:00
Maximilian Brandau and Tanner Linsley
bcd0da7379
fix: update colSpan ( #1447 )
...
Only count visible columns for determining the colSpan
fix #1446
2019-08-15 08:57:22 -06:00
tannerlinsley
a667b7cb13
fix(use-pagination): better controlled/manual use-pagination
2019-08-06 22:32:17 -06:00
tannerlinsley
8508a6567d
feat(multiple): useRowState, fix useRowSelect/useSortBy/usePagination
2019-08-06 19:57:48 -06:00
tannerlinsley
037c32345f
feat(use-row-select): added useRowSelect plugin hook + related
2019-08-03 14:20:08 -06:00
tannerlinsley
512790bc1c
fix(multiple): sub-components example, minor refactors
...
Fixes #1423
2019-08-02 07:42:42 -06:00
tannerlinsley
a7a95b2ce6
fix(usepagination): pageOptions calculate correctly, added pagination ex
2019-07-30 11:41:11 -06:00
tannerlinsley
b2abd82350
Use useEffect in dev, not layoutEffect
2019-07-25 13:39:10 -06:00
tannerlinsley
c7d6562d04
Change actions and addActions to be simpler to use
2019-07-23 12:30:15 -06:00
tannerlinsley
fd64486286
Fix usePagination to work during SSR
2019-07-23 10:55:49 -06:00
tannerlinsley
5043af5071
Move useColumns and useRows into useTable (but allow overrides)
2019-07-23 10:22:46 -06:00