Actions
Bug #12829
openMaximum Update Depth Exceeded Warning in DeviceOperations
Status:
New
Priority:
High
Assignee:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Device Type:
Component:
Device-Mgt-UI
Type:
UI
Description
Environment details
Local server 6.4.0
Prerequisites
Enroll a device
- Go to single device view
- switch to operation log or status and information tab
- Open the browser console
- Observe the warning: "Maximum update depth exceeded"
- Expected Behavior : The component should render without triggering excessive re-renders.
- Actual Behavior : The component enters a render-update loop, leading to performance issues.
- This issue is not encountered in staging environment, only in the local environment.
Possible Cause: A useEffect without a dependency array or with a dependency that continuously updates / A state update inside useEffect that triggers a re-render, causing another state update.
Suggested Fix: Verify if the useEffect dependency array is correctly defined / Ensure that setState inside useEffect is not causing an infinite loop. The component may be EntgraDangerZoneTooltip
Files
Actions