feat(rg): add onConnect callback

This commit is contained in:
moklick
2019-07-29 18:18:27 +02:00
parent cc14c724d0
commit 8fb45f4894
26 changed files with 434 additions and 120 deletions
-2
View File
@@ -9,7 +9,6 @@ export const GraphContext = createContext({});
export const Provider = (props) => {
const {
onElementClick,
children
} = props;
@@ -42,7 +41,6 @@ export const Provider = (props) => {
});
const graphContext = {
onElementClick,
state,
dispatch
};