chore: move readyState

This commit is contained in:
arashsheyda
2023-04-26 22:44:45 +03:00
parent ad0c5b2d40
commit 260eadd837
2 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,10 @@
<script lang="ts" setup>
const readyState = computedAsync(async () => await rpc.readyState())
</script>
<template>
<div h-full of-auto>
<slot />
<slot v-if="readyState === 1" />
<Connection v-else :connection="readyState" />
</div>
</template>