You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like you're violating at least two Redux principles. Firstly you don't have a single source of truth. The DataTable class owns a state while there is also state in the store. Secondly you are using setState(). Instead of setState(), simply dispatch an action. Maybe you didn't catch these issues because you didn't originally start with Redux from the beginning of the project.
The text was updated successfully, but these errors were encountered:
The state of the input fields in the DataTable component were not meant to be shared in a global context, therefore it was kept in local state. Refer to the following issue discussing when to use Redux store or React state. reduxjs/redux#1287 (comment)
It looks like you're violating at least two Redux principles. Firstly you don't have a single source of truth. The DataTable class owns a state while there is also state in the store. Secondly you are using setState(). Instead of setState(), simply dispatch an action. Maybe you didn't catch these issues because you didn't originally start with Redux from the beginning of the project.
The text was updated successfully, but these errors were encountered: