Open celine3d opened 4 years ago
I'm having the same issue, but this work-around seems to be working for me:
if (typeof Cytoscape('core', 'expandCollapse') == 'undefined') {
Cytoscape.use(CytoscapeUndoRedo);
Cytoscape.use(CytoscapeExpandCollapse);
}
I am having the same issue but I cannot figure out how to apply the fix. In my case It fails on first load. Any help is appreciated.
I am using cytoscape.js in react and cytoscape.js-expand-collapse. I register this extension at the very begining of my file as shown in docs: https://github.com/iVis-at-Bilkent/cytoscape.js-expand-collapse: by doing expandCollapse( cytoscape ); and it works only on first render. When I come back to my cytoscape component I receive following error: Can not register expandCollapse for core since expandCollapse already exists in the prototype and can not be overridden.