feat(flow): Add option to disable default change handlers globally

* overwrites applyDefault setting for useEdgeState/useNodeState/useElementsState
* export apply change handlers

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent 423f6aa78d
commit e2e094b987
6 changed files with 19 additions and 5 deletions
+5
View File
@@ -187,4 +187,9 @@ export default (
(v) => isDef(v) && (store.edgeUpdaterRadius = v),
{ immediate: true },
)
watch(
() => props.applyDefault,
(v) => isDef(v) && (store.applyDefault = v),
{ immediate: true },
)
}