dva icon indicating copy to clipboard operation
dva copied to clipboard

dva报错信息查看

Open zllc opened this issue 10 years ago • 2 comments

开发dva应用时,有时会遇到js报错。比如

warning.js:36Warning: setState(...): Cannot update during an existing state transition (such as within render or another component's constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern, but can be moved to componentWillMount.

但是不太好定位到是源码的哪个地方,有没有什么好的方法

zllc avatar Nov 25 '16 08:11 zllc

非 dva 范围内的问题了,是否在 render 里使用 setState 了?

sorrycc avatar Nov 25 '16 09:11 sorrycc

谢谢

zllc avatar Nov 25 '16 09:11 zllc