Skip to content

Commit 0f52a6c

Browse files
committed
perf(claim-package-modal): use shallowRef instead deep ref
1 parent 050885d commit 0f52a6c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

app/components/ClaimPackageModal.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ const {
1919
} = useConnector()
2020
2121
// Fetch name availability when modal opens
22-
const checkResult = ref<CheckNameResult | null>(null)
22+
const checkResult = shallowRef<CheckNameResult | null>(null)
2323
24-
const isChecking = ref(false)
25-
const isPublishing = ref(false)
26-
const publishError = ref<string | null>(null)
27-
const publishSuccess = ref(false)
24+
const isChecking = shallowRef(false)
25+
const isPublishing = shallowRef(false)
26+
const publishError = shallowRef<string | null>(null)
27+
const publishSuccess = shallowRef(false)
2828
2929
async function checkAvailability() {
3030
isChecking.value = true
@@ -125,7 +125,7 @@ const previewPackageJson = computed(() => {
125125
}
126126
})
127127
128-
const connectorModalOpen = ref(false)
128+
const connectorModalOpen = shallowRef(false)
129129
</script>
130130

131131
<template>

0 commit comments

Comments
 (0)