Merge pull request #2437 from Alireza29675/feat/cancel-connection
feat(store): cancelConnection method created
This commit is contained in:
@@ -238,6 +238,11 @@ const createRFStore = () =>
|
|||||||
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