style: use shallowRef for primitive refs in web nav

This commit is contained in:
germondai
2026-07-10 17:35:25 +02:00
parent c25889493a
commit 1f1a45ee0b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
<script lang="ts" setup>
const docsUrl = useDocsUrl()
const stars = useGithubStars()
const menuOpen = ref(false)
const menuOpen = shallowRef(false)
function closeMenu() {
menuOpen.value = false
+1 -1
View File
@@ -1,5 +1,5 @@
export function useGithubStars() {
const stars = shallowRef<string | null>(null)
const stars = shallowRef<string>()
onMounted(async () => {
try {