chore: move readyState
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user