Hello!
I found problem of infinite render page (or graph i don't know what exactly)
Bug: infinite render (Chrome Version 116.0.5845.187 (Official Build) (arm64))
Basic dependencies for convenience:
"cytoscape": "^3.0.0",
"react-cytoscapejs": "^2.0.0",
"cytoscape-euler": "^1.2.2",
The main problem is in the CytoscapeСomponent (all code of the Graph component on React) and in the layouts object, namely the property "randomize": false.
One of the main reasons, it seems to me, is the following:
Problem in React. There may be something with the life cycles of rendering components that conflict with the library itself. Although of course they did, but still.
Perhaps some fields in the layout object are ignored, because the "numIter" object parameter simply does not work in this situation.
Perhaps, bug in current component, if you find, please write about it.
With randomize: true, all works good
just in case, I attach the entire component code.
Hello! I found problem of infinite render page (or graph i don't know what exactly) Bug: infinite render (Chrome Version 116.0.5845.187 (Official Build) (arm64))
Basic dependencies for convenience: "cytoscape": "^3.0.0", "react-cytoscapejs": "^2.0.0", "cytoscape-euler": "^1.2.2",
The main problem is in the CytoscapeСomponent (all code of the Graph component on React) and in the layouts object, namely the property "randomize": false.
One of the main reasons, it seems to me, is the following:
Perhaps, bug in current component, if you find, please write about it. With randomize: true, all works good just in case, I attach the entire component code.
Source code: