feat: merge store with props

* if options are passed to useVueFlow, we want to merge them with possibly passed props
* renamed flowStore to stateStore
* fix examples
* add store prop to pass an already existing store to flow

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-19 23:45:39 +01:00
parent 921d93c73e
commit 6a68292f7c
19 changed files with 80 additions and 96 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ const props = withDefaults(defineProps<HandleProps>(), {
})
const store = useStore()
const nodeId = inject(NodeId, '')!
const nodeId = inject(NodeId, '')
const handler = useHandle()
const onMouseDownHandler = (event: MouseEvent) =>