refactor(core): pass node and edge id computed to getters and actions

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-04-11 20:28:02 +02:00
committed by Braks
parent f19e210442
commit ebed9663b4
4 changed files with 182 additions and 86 deletions
+3 -1
View File
@@ -142,7 +142,9 @@ export function useState(opts?: FlowOptions): State {
if (opts) {
Object.keys(opts).forEach((o) => {
const option = opts[o as keyof typeof opts]
if (isDef(option)) (state as any)[o] = option
if (isDef(option)) {
;(state as any)[o] = option
}
})
}