Skip to content

Redux action SORT_BY_FIELD is successfully dispatched to Table component but Table will not re-render upon the state change. #1

Description

@dyl4810

The console shows that the state changes from redux through SORT_BY_FIELD are passed down to the Table component as shown below:
image

However, state change won't trigger re-render of Table component. I think the actions I wrote are mutable (which shouldn't be) and I think that is the source of all errors.

Redux action SORT_BY_FIELD codes:
https://github.com/dyl4810/dynamicDataTable/blob/master/src/reducers/rootReducer.js#L88-L96

Here is the deployed sandbox to play around:
@https://dyl4810.github.io/dynamicDataTable

@asiandrummer

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions