From 9e59bc5262e5e6c6f1243ec2f301c30e0087db1f Mon Sep 17 00:00:00 2001 From: Rohit Garg <42495927+gargroh@users.noreply.github.com> Date: Wed, 10 Jun 2020 03:23:27 +0530 Subject: [PATCH] feat: add initialRows property on instance (#2400) Adding initial rows property, which helps in getting rows before sorting, filtering etc. --- src/hooks/useTable.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hooks/useTable.js b/src/hooks/useTable.js index 3a8361f0e3..a30d9e62de 100755 --- a/src/hooks/useTable.js +++ b/src/hooks/useTable.js @@ -210,6 +210,7 @@ export const useTable = (props, ...plugins) => { Object.assign(getInstance(), { rows, + initialRows: [...rows], flatRows, rowsById, // materializedColumns,