Skip to content

Commit a22bf30

Browse files
committed
chore: lint
1 parent 9e55a81 commit a22bf30

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

packages/devtools/client/app.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script setup lang="ts">
22
import { useRoute } from '#app/composables/router'
33
import { useHead } from '#imports'
4-
import { useEventListener, useEyeDropper, watchOnce } from '@vueuse/core'
4+
import { useEventListener, useEyeDropper } from '@vueuse/core'
55
import { computed, onMounted, watch, watchEffect } from 'vue'
66
import { getColorMode, showConnectionWarning, useClient, useInjectionClient } from '~/composables/client'
77
import { devAuthToken, isDevAuthed } from '~/composables/dev-auth'
88
import { useCopy } from '~/composables/editor'
9-
import { rpc } from '~/composables/rpc'
9+
import { rpc, WS_DEBOUNCE_TIME } from '~/composables/rpc'
1010
import { registerCommands } from '~/composables/state-commands'
1111
import { splitScreenAvailable, splitScreenEnabled } from '~/composables/storage'
1212
import { useSchemaInput } from './composables/state-schema'
@@ -49,8 +49,9 @@ const showDisconnectIndicator = ref(false)
4949
5050
if (wsConnectedOnce.value) {
5151
// debounce one time to avoid showing the indicator on first load of the app
52-
onConnected()
53-
} else {
52+
onConnected()
53+
}
54+
else {
5455
// watch for connection and show the indicator if it was connected at least once
5556
const stop = watch(wsConnectedOnce, (val) => {
5657
if (val) {

0 commit comments

Comments
 (0)