react-render-debugger icon indicating copy to clipboard operation
react-render-debugger copied to clipboard

Cannot read property 'renderLog' of null

Open gwmaster opened this issue 7 years ago • 4 comments

Something went wrong: TypeError Cannot read property 'renderLog' of null

TestConta er (created by Connect(TestConta er)) Connect(TestConta er) (created by Route) Route Switch div Router (created by ConnectedRouter) ConnectedRouter (created by Connect(ConnectedRouter)) Connect(ConnectedRouter) Provider ErrorBoundary

gwmaster avatar Sep 13 '18 07:09 gwmaster

Hello,

Could you please provide more details - snippet of code that is failing, what library versions are you using?

Thanks!

marcin-mazurek avatar Sep 15 '18 14:09 marcin-mazurek

install my https://bitbucket.org/gwmaster_gwm/multiprojectstarter/src/master/ and set you code on

src/appsDevelop/starterProject/containers/myComponent/myComponent.js

run npm i npm run starterProject:start

then navigate

gwmaster avatar Sep 16 '18 05:09 gwmaster

I had this problem too. Debugging revealed that the error is caused by this.state (of the decoratee component) being null. If you default this.state of your decoratee component to an empty object, the error does not occur.

jumpinjackie avatar Dec 05 '18 07:12 jumpinjackie

Would you like to submit a merge request that would fix this?

marcin-mazurek avatar Mar 13 '19 20:03 marcin-mazurek