File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import { useRoute } from ' #app/composables/router'
33import { useHead } from ' #imports'
4- import { useEventListener , useEyeDropper , watchOnce } from ' @vueuse/core'
4+ import { useEventListener , useEyeDropper } from ' @vueuse/core'
55import { computed , onMounted , watch , watchEffect } from ' vue'
66import { getColorMode , showConnectionWarning , useClient , useInjectionClient } from ' ~/composables/client'
77import { devAuthToken , isDevAuthed } from ' ~/composables/dev-auth'
88import { useCopy } from ' ~/composables/editor'
9- import { rpc } from ' ~/composables/rpc'
9+ import { rpc , WS_DEBOUNCE_TIME } from ' ~/composables/rpc'
1010import { registerCommands } from ' ~/composables/state-commands'
1111import { splitScreenAvailable , splitScreenEnabled } from ' ~/composables/storage'
1212import { useSchemaInput } from ' ./composables/state-schema'
@@ -49,8 +49,9 @@ const showDisconnectIndicator = ref(false)
4949
5050if (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 ) {
You can’t perform that action at this time.
0 commit comments