autobind make react-hot fails
magicdawn opened this issue · comments
error stack
Uncaught TypeError: Cannot set property handleFormSubmit of #<ActivityForm> which has only a getter
at patchProperty (webpack:///./~/.0.4.7@react-hot-api/modules/makeAssimilatePrototype.js?:21:16)
at eval (webpack:///./~/.0.4.7@react-hot-api/modules/makeAssimilatePrototype.js?:52:9)
at Array.forEach (native)
at eval (webpack:///./~/.0.4.7@react-hot-api/modules/makeAssimilatePrototype.js?:51:51)
at Array.forEach (native)
at reconcileWithStoredPrototypes (webpack:///./~/.0.4.7@react-hot-api/modules/makeAssimilatePrototype.js?:50:21)
at assimilatePrototype (webpack:///./~/.0.4.7@react-hot-api/modules/makeAssimilatePrototype.js?:63:5)
at patchReactClass (webpack:///./~/.0.4.7@react-hot-api/modules/makePatchReactClass.js?:40:5)
at Object.makeHot (webpack:///./~/.0.4.7@react-hot-api/modules/makeMakeHot.js?:33:12)
at makeExportsHot (webpack:///./~/.1.3.1@react-hot-loader/makeExportsHot.js?:44:26)
guess the hot module need to patch the component
After migrate to react-hot-loader@3. Things fixed.