Open ChrisBirkett opened 6 years ago
Yeah, grid assumes that data is either a native JS object, or an immutable object. It doesn't know how to retrieve data from a redux-freeze object. PR's welcome!
The only place we would need to handle the retrieval of data inside the redux-freeze object should be in the stateGetter util.
Cool - if we work on this I will certainly send a PR. Cheers!
We love the look of this grid and are keen to use it to display data from our Redux state, so the contents of the grid change as the state updates.
The issue is... We use
redux-freeze
to prevent state mutation. Since the elements of our data array are not extensible, we have to add _key ourselves to prevent this error:I'm fine with that, but then if I try to sort by clicking a column header, I get:
Presumably the disallowed state mutation here is within the grid's own state. I can only get it to work by taking the
redux-freeze
middleware out of the store. Any ideas how I could keep the store frozen? Would I need a second store dedicated to the grid?