beautiful-react-diagrams
beautiful-react-diagrams copied to clipboard
useSchema should export a "disconnect" function to programmatically disconnect two linked nodes
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.
Hello! I've raised this PR to address this. Please let me know if it looks fine to you :)
Thank you @ginoemiliozzi !!!
This will be solved when the #70 will be released
useSchema.ts needs to disconnect too