plotly / react-cytoscapejs

React component for Cytoscape.js network visualisations
MIT License
480 stars 68 forks source link

.addClass does not work on edges with React 18's concurrent rendering. #127

Open LPT00 opened 3 months ago

LPT00 commented 3 months ago

Recently upgraded my app to React 18 to have concurrent rendering with createRoot(rootElement).render() replacing the old render(, rootElement) and specifically this command causes all of the edges to not pick up style changes dynamically. I have a few functions that will change the colour of the edges once clicked by using the .addClass() function by cytoscape, but now this does not work. Node's .addClass still works though...