Infinite loop render when clicking on a node/edge
Happens in the demo
workflow:
- Load the
demo
workflow - Click on a node/edge
- See the
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.
error.
It seems to be linked to the TextareaAutosize
component from MUI (used in the Sidebar) coupled with React 18 changes. MUI seems to have added a test for it (https://github.com/mui/material-ui/pull/38728) but it didn't catch our issue.
I tried to update to MUI latest version but to no avail.