fix(onLoad): use project and getElements in combination with RFPovider closes #285

This commit is contained in:
moklick
2020-08-20 08:53:51 +02:00
parent 312a8e3fe2
commit de9a846fea
5 changed files with 34 additions and 9 deletions
+1 -1
View File
@@ -604,7 +604,7 @@ const TransformUpdater = ({ x, y, zoom }) => {
});
```
If you need more control you can wrap the `ReactFlow` component with the `ReactFlowProvider` component in order to be able to call `useStoreState` outside of the `ReactFlow` component.
If you need more control you can wrap the `ReactFlow` component with the `ReactFlowProvider` component in order to be able to call `useStoreState` and `useStoreActions` outside of the `ReactFlow` component.
# Examples