react-tabulator
react-tabulator copied to clipboard
persistence not working on sorting
persistence not working on sorting
- bug: When I'm trying to persist the column sort, it's saved in the local storage -> but when I reload the page, the sort is the default
Environment Details
- react-tabulator version: 0.17.0
- OS:
- Node.js version: 16.10.0
Do you have any idea, why it stop to works?
const options = {
height: 500,
movableRows: true,
movableColumns: true,
persistenceID: 'example1',
persistence: {
sort: true, // persist column sorting
filter: true, // persist filter sorting
group: true, // persist row grouping
page: true, // persist page
columns: true, // persist columns
},
};
<ReactTabulator
columns={columns}
data={data}
options={options}
data-custom-attr='test-custom-attribute'
className='custom-css-class'
/>
I also cannot get persistence to work. Not just for sorting, but for all persistence fields including sorting, filtering, grouping, paging, etc. I see it writing the persistence data to the localStorage, but it must not be reading from it correctly.
persistence is not working properly. It store the value in local but when I visit next time it doesn't apply that persistence on table. Link