Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Maximum update depth exceeded.

オープン
#265 コメント 2 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
react, typescript
領域
frontend

調査の方向性

まず、開発者ツールを閉じた状態で、antd Select と react-component/select のパスを通じてエラーを再現します。次に、スタック内で報告されている updateMiniStore と componentDidUpdate のエントリを追跡し、ドロップダウンを開いて複数の項目を選択しても、最大更新深度エラーが発生しなくなったことを確認します。

索引モデルが issue の本文から書いたものです。

説明

We are occasionally experiencing the following error in our production environment. Only certain users are experiencing this. We are using an antd select component, which uses the react-component/select component, which uses this component. Sometimes this error occurs when first clicking in the select dropdown, and other times, when selecting the 3rd/4th item in the dropdown.

Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.

  at listener (client.3713b3bd.js:3614)
vendor.17bd68bdeb41bf6a11e3.js:2573 Invariant Violation: Minified React error #185; visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. 
    at https://integrate.bmwgroup.net/vendor.17bd68bdeb41bf6a11e3.js:2573:522
    at a (https://integrate.bmwgroup.net/vendor.17bd68bdeb41bf6a11e3.js:2573:625)
    at Qa (https://integrate.bmwgroup.net/vendor.17bd68bdeb41bf6a11e3.js:2573:95354)
    at Object.enqueueSetState (https://integrate.bmwgroup.net/vendor.17bd68bdeb41bf6a11e3.js:2573:44845)
    at l.x.setState (https://integrate.bmwgroup.net/vendor.17bd68bdeb41bf6a11e3.js:2612:1702)
    at Array.r.handleChange (https://integrate.bmwgroup.net/vendor.17bd68bdeb41bf6a11e3.js:1006:710657)
    at Object.setState (https://integrate.bmwgroup.net/vendor.17bd68bdeb41bf6a11e3.js:1006:713027)
    at t.updateMiniStore (https://integrate.bmwgroup.net/vendor.17bd68bdeb41bf6a11e3.js:2557:83699)
    at t.componentDidUpdate (https://integrate.bmwgroup.net/vendor.17bd68bdeb41bf6a11e3.js:2557:83601)
    at Ba (https://integrate.bmwgroup.net/vendor.17bd68bdeb41bf6a11e3.js:2573:82584)
    at Va (https://integrate.bmwgroup.net/vendor.17bd68bdeb41bf6a11e3.js:2573:85160)
    at https://integrate.bmwgroup.net/vendor.17bd68bdeb41bf6a11e3.js:2573:98367
    at Object.t.unstable_runWithPriority (https://integrate.bmwgroup.net/vendor.17bd68bdeb41bf6a11e3.js:2628:3194)
    at js (https://integrate.bmwgroup.net/vendor.17bd68bdeb41bf6a11e3.js:2573:98302)
    at Cs (https://integrate.bmwgroup.net/vendor.17bd68bdeb41bf6a11e3.js:2573:98078)
    at Es (https://integrate.bmwgroup.net/vendor.17bd68bdeb41bf6a11e3.js:2573:97423)

One other piece of information, whenever we open the developer tools, this bug does not happen, when we close it, it starts happening again.

主要言語
TypeScript
スター
701
フォーク
266
平均マージ
4日 11時間
マージ済み PR(30日)
3

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

react-component/menu のほかの issue

react-component/menu の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。