update: make types for nodes and edges a computed prop
* remove nodeTypesId (was used in react to manually trigger a nodeTypes change) Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -140,11 +140,10 @@ watch(
|
||||
)
|
||||
watch(
|
||||
() => props,
|
||||
(val, oldVal) => {
|
||||
const hasDiff = diff(val, oldVal)
|
||||
if (hasDiff.length > 0) init({ ...store.$state, ...val } as FlowState)
|
||||
(val) => {
|
||||
init({ ...store.$state, ...val } as FlowState)
|
||||
},
|
||||
{ flush: 'pre', deep: true },
|
||||
{ flush: 'post', deep: true },
|
||||
)
|
||||
init(options)
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user