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
{{ message }}
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.
I've seen the redux pattern in other projects where mapDispatchToProps is bound to all action creators through bindActionCreators... That way, it's one less thing to define in each container. For example, we'd add to a container:
And Redux/index.js would also have (as an example):
import ProductActions from './ProductRedux'
import BusinessActions from './BusinessRedux'
export const ActionCreators = Object.assign({}, // This needs to be defined
ProductActions,
BusinessActions
)
Each reducer already exports Creators extracted from createActions(), so it seems logical to take that one step further.
The text was updated successfully, but these errors were encountered:
I've seen the redux pattern in other projects where mapDispatchToProps is bound to all action creators through bindActionCreators... That way, it's one less thing to define in each container. For example, we'd add to a container:
And Redux/index.js would also have (as an example):
Each reducer already exports Creators extracted from createActions(), so it seems logical to take that one step further.
The text was updated successfully, but these errors were encountered: