-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage with redux-freeze #201
Labels
Comments
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! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?The text was updated successfully, but these errors were encountered: