Skip to content

Commit

Permalink
feat: add initialRows property on instance (#2400)
Browse files Browse the repository at this point in the history
Adding initial rows property, which helps in getting rows before sorting, filtering etc.
  • Loading branch information
gargroh authored Jun 9, 2020
1 parent e015e6d commit 9e59bc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/useTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export const useTable = (props, ...plugins) => {

Object.assign(getInstance(), {
rows,
initialRows: [...rows],
flatRows,
rowsById,
// materializedColumns,
Expand Down

0 comments on commit 9e59bc5

Please sign in to comment.