andreypopp / autobind-decorator

Decorator to automatically bind methods to class instances

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autobind make react-hot fails

magicdawn opened this issue · comments

commented

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)
commented

guess the hot module need to patch the component

commented

After migrate to react-hot-loader@3. Things fixed.