From 021e4daca598db119e5c6a5b251448711a0e21ef Mon Sep 17 00:00:00 2001 From: Alireza Sheikholmolouki Date: Tue, 20 Sep 2022 14:50:26 +0300 Subject: [PATCH] feat(store): cancel connection method added --- src/store/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/store/index.ts b/src/store/index.ts index cb8b9502..bbb24cfe 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -233,6 +233,11 @@ const createStore = () => nodeInternals: new Map(nodeInternals), }); }, + cancelConnection: () => + set({ + connectionNodeId: initialState.connectionNodeId, + connectionHandleId: initialState.connectionHandleId, + }), reset: () => set({ ...initialState }), }));