react-tabulator icon indicating copy to clipboard operation
react-tabulator copied to clipboard

persistence not working on sorting

Open p333ter opened this issue 2 years ago • 2 comments

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'
      />

p333ter avatar Apr 07 '22 10:04 p333ter

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.

ajc-uconn avatar Sep 07 '22 16:09 ajc-uconn

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

rahul72925 avatar Dec 15 '22 07:12 rahul72925