beautiful-react-diagrams icon indicating copy to clipboard operation
beautiful-react-diagrams copied to clipboard

useSchema should export a "disconnect" function to programmatically disconnect two linked nodes

Open Lindsay89 opened this issue 5 years ago • 4 comments

Given that useSchema currently exports a connect function to connects two different nodes and a removeNode function to remove a given node, it should also export a disconnect function to programmatically disconnect two linked nodes without removing them. At the moment the only way to do so, is to change the schema directly.

Lindsay89 avatar Oct 19 '20 15:10 Lindsay89

Hello! I've raised this PR to address this. Please let me know if it looks fine to you :)

ginoemiliozzi avatar Nov 25 '20 11:11 ginoemiliozzi

Thank you @ginoemiliozzi !!!

antonioru avatar Nov 26 '20 08:11 antonioru

This will be solved when the #70 will be released

antonioru avatar Nov 26 '20 08:11 antonioru

useSchema.ts needs to disconnect too

importamt avatar Aug 25 '21 08:08 importamt