From 512df8e42b022d29196ddb5d022d5f6fd6832bba Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Fri, 26 Nov 2021 11:11:21 +0100 Subject: [PATCH] update(store): use setElements for addElements with force set false Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com> --- src/container/VueFlow/VueFlow.vue | 8 ++++++-- src/store/stateStore.ts | 3 +-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/container/VueFlow/VueFlow.vue b/src/container/VueFlow/VueFlow.vue index cd75676a..e4368670 100644 --- a/src/container/VueFlow/VueFlow.vue +++ b/src/container/VueFlow/VueFlow.vue @@ -102,7 +102,7 @@ const props = withDefaults(defineProps(), { edgeUpdaterRadius: 10, loading: false, }) -const emit = defineEmits([...Object.keys(createHooks()).filter((key) => key !== 'edgeUpdate'), 'update:modelValue']) +const emit = defineEmits([...Object.keys(createHooks()), 'update:modelValue']) const store = initFlow(emit, typeof props.storageKey === 'string' ? props.storageKey : props.id) const elements = useVModel(props, 'modelValue', emit) const options = Object.assign({}, store.$state, props) @@ -147,7 +147,11 @@ const transitionName = computed(() => { onBeforeUnmount(() => store?.$dispose()) - +