New to React and Material-Table.
I have filters and grouping allowed in my material-table.
How can i save the filters and groups to the local storage and load them?
New to React and Material-Table.
I have filters and grouping allowed in my material-table.
How can i save the filters and groups to the local storage and load them?
you want first to
const newValues= JSON.parse(localStorage.getItem('your local storage))
then add your filter
newValues.filter()
finally
localStorage.setItem('your local storage',JSON.stringify(newValues))