admin/articles/1/editのページにて<li><a onClick={this._onMenuContentClick(1)}>見出し</a></li>
(article_menu.jsx)をクリックをするたびに
ContentsEditor.state.contentsに要素を追加しそれを更新・出力する。
<li><a onClick={this._onMenuContentClick(1)}>見出し</a></li>
で指定している_onMenuContentClick(1)
がまだクリックされていないのにページ読み込み時に実行される
↓
ContentsEditor.onMenuClick(content)
が無限回呼び出される
↓
以下のエラーを吐く
Uncaught RangeError: Maximum call stack size exceeded
at String.replace (native)
at printWarning (http://localhost:8080/editor.js:210:42)
at warning (http://localhost:8080/editor.js:238:22)
at callHook (http://localhost:8080/editor.js:26130:13)
at emitEvent (http://localhost:8080/editor.js:26140:7)
at Object.onBeforeUpdateComponent (http://localhost:8080/editor.js:26425:5)
at Object.receiveComponent (http://localhost:8080/editor.js:4677:40)
at Object.updateChildren (http://localhost:8080/editor.js:22357:25)
at ReactDOMComponent._reconcilerUpdateChildren (http://localhost:8080/editor.js:27285:32)
at ReactDOMComponent._updateChildren (http://localhost:8080/editor.js:27389:31)