refactor(props): remove onConnectStop #2299

This commit is contained in:
moklick
2022-07-25 16:08:52 +02:00
parent 37b311851c
commit efedf04a56
7 changed files with 6 additions and 29 deletions
@@ -13,10 +13,8 @@ type StoreUpdaterProps = Pick<
| 'defaultEdges'
| 'onConnect'
| 'onConnectStart'
| 'onConnectStop'
| 'onConnectEnd'
| 'onClickConnectStart'
| 'onClickConnectStop'
| 'onClickConnectEnd'
| 'nodesDraggable'
| 'nodesConnectable'
@@ -79,10 +77,8 @@ const StoreUpdater = ({
defaultEdges,
onConnect,
onConnectStart,
onConnectStop,
onConnectEnd,
onClickConnectStart,
onClickConnectStop,
onClickConnectEnd,
nodesDraggable,
nodesConnectable,
@@ -133,10 +129,8 @@ const StoreUpdater = ({
useDirectStoreUpdater('connectionMode', connectionMode, store.setState);
useDirectStoreUpdater('onConnect', onConnect, store.setState);
useDirectStoreUpdater('onConnectStart', onConnectStart, store.setState);
useDirectStoreUpdater('onConnectStop', onConnectStop, store.setState);
useDirectStoreUpdater('onConnectEnd', onConnectEnd, store.setState);
useDirectStoreUpdater('onClickConnectStart', onClickConnectStart, store.setState);
useDirectStoreUpdater('onClickConnectStop', onClickConnectStop, store.setState);
useDirectStoreUpdater('onClickConnectEnd', onClickConnectEnd, store.setState);
useDirectStoreUpdater('nodesDraggable', nodesDraggable, store.setState);
useDirectStoreUpdater('nodesConnectable', nodesConnectable, store.setState);