Skip to content

Commit

Permalink
use didMount instead of will, related to #860
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Feb 15, 2018
1 parent bc5950e commit e000cb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/proxy/createClassProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ function createClassProxy(InitialComponent, proxyKey, options) {
}
}

const componentWillMount = lifeCycleWrapperFactory(
'componentWillMount',
const componentDidMount = lifeCycleWrapperFactory(
'componentDidMount',
target => {
target[PROXY_IS_MOUNTED] = true
},
Expand Down Expand Up @@ -127,7 +127,7 @@ function createClassProxy(InitialComponent, proxyKey, options) {
const defineProxyMethods = Proxy => {
defineClassMembers(Proxy, {
render: proxiedRender,
componentWillMount,
componentDidMount,
componentWillReceiveProps,
componentWillUnmount,
})
Expand Down

0 comments on commit e000cb8

Please sign in to comment.