Merge pull request #448 from wbkd/develop

fix(onLoad): use project and getElements inside with ReactFlowProvider
This commit is contained in:
Moritz
2020-08-20 08:49:13 +02:00
committed by GitHub
5 changed files with 34 additions and 9 deletions
+1 -1
View File
@@ -608,7 +608,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