mirror of
https://github.com/germondai/trawl.git
synced 2026-08-17 12:11:23 +02:00
style: use shallowRef for primitive refs in web nav
This commit is contained in:
@@ -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,5 +1,5 @@
|
||||
export function useGithubStars() {
|
||||
const stars = shallowRef<string | null>(null)
|
||||
const stars = shallowRef<string>()
|
||||
|
||||
onMounted(async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user