Skip to content

Commit

Permalink
Fix non-reactive toolkit prop for Vue 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangDrescher committed Oct 14, 2024
1 parent c565dec commit 7f4fad0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/VerovioCanvas.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup>
import { ref, toRefs, watch } from 'vue';
import { ref, toRefs, watchEffect } from 'vue';
import { useVerovio } from '../composables/useVerovio';
import Loading from './Loading.vue';
import { useIntersectionObserver } from '@vueuse/core';
Expand Down Expand Up @@ -85,8 +85,8 @@ const {
setToolkit(props.toolkit);
watch(() => props.toolkit, (value) => {
setToolkit(value);
watchEffect(() => {
setToolkit(props.toolkit);
});
defineExpose({
Expand Down

0 comments on commit 7f4fad0

Please sign in to comment.