Skip to content

Commit

Permalink
fix: remove console warning caused by HOC action
Browse files Browse the repository at this point in the history
  • Loading branch information
erichartline committed Nov 27, 2018
1 parent 3e18ddf commit 6f2e4a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/common/withDataFetching.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const WithDataFetching = (
) => WrappedComponent => {
class WithDataFetchingComponent extends Component {
componentDidMount() {
const { action } = this.props

action()
}

Expand Down Expand Up @@ -57,7 +59,7 @@ const WithDataFetching = (

return connect(
mapStateToProps,
action,
{ action },
)(WithDataFetchingComponent)
}

Expand Down

0 comments on commit 6f2e4a5

Please sign in to comment.