feat(store): cancel connection method added
This commit is contained in:
@@ -233,6 +233,11 @@ const createStore = () =>
|
|||||||
nodeInternals: new Map(nodeInternals),
|
nodeInternals: new Map(nodeInternals),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
cancelConnection: () =>
|
||||||
|
set({
|
||||||
|
connectionNodeId: initialState.connectionNodeId,
|
||||||
|
connectionHandleId: initialState.connectionHandleId,
|
||||||
|
}),
|
||||||
reset: () => set({ ...initialState }),
|
reset: () => set({ ...initialState }),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user