Fix Reactivity issue with library imports when changing version
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
outputHeight="20%"
|
||||
fullHeight
|
||||
hideRunButton
|
||||
:libs="libs"
|
||||
:libs="xocashLibs"
|
||||
:isDark="isDark"
|
||||
>
|
||||
<slot></slot>
|
||||
@@ -30,7 +30,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, computed } from 'vue';
|
||||
import { ref } from 'vue';
|
||||
import { useData } from 'vitepress';
|
||||
|
||||
import { useXOCashLibs } from '../utils/useXOCashLibs';
|
||||
@@ -38,10 +38,6 @@ import CodeSandbox from './CodeSandbox.vue'
|
||||
|
||||
const xocashLibs = useXOCashLibs();
|
||||
|
||||
const libs = computed(() => {
|
||||
return { ...xocashLibs }
|
||||
});
|
||||
|
||||
const { isDark } = useData();
|
||||
|
||||
const sandbox = ref<InstanceType<typeof CodeSandbox> | null>(null);
|
||||
|
||||
Reference in New Issue
Block a user