You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We started seeing error Uncaught Error: Maximum update depth exceeded. in our application when changing dropdown menu options. Following screen recording shows the error in our application -
Error.in.elyra.canvas.mov
Uncaught Error: 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.
I am seeing renderItem() is called multiple times when I hover over dropdown menu options and also when I select new dropdown options.
Wondering if the error is caused due to so many calls to the renderItem() method?
Severity 1 = Must be fixed ASAP. The response must be swift. Someone from the team must drop all current work and be immediately reassigned to address the issue.
Package
@carbon/react
Browser
Chrome
Package version
v1.68.0
React version
v18.2.0
Description
We started seeing error
Uncaught Error: Maximum update depth exceeded.
in our application when changing dropdown menu options. Following screen recording shows the error in our application -Error.in.elyra.canvas.mov
we recently added this code -
I am seeing
renderItem()
is called multiple times when I hover over dropdown menu options and also when I select new dropdown options.Wondering if the error is caused due to so many calls to the renderItem() method?
Reproduction/example
https://stackblitz.com/edit/github-enf21q?file=src%2FApp.jsx
Steps to reproduce
Suggested Severity
Severity 1 = Must be fixed ASAP. The response must be swift. Someone from the team must drop all current work and be immediately reassigned to address the issue.
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: