I am rendering some elements from react and connecting using jsPlumb. Every time there is a change in the config I am reconnecting the nodes. But I get errors from jsPlumb starting from the second rendering like
.each iteration failed : TypeError: Cannot read property 'force' of undefined
Then all drag/move interaction from jsplumb stops working with errors.
What would be the best way to reset jsPlumb instance with removing all endpoint references and connections? I am doing jsPlumbInstance.reset() but its not helping.