mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 14:39:30 -07:00
Component Boom
This commit is contained in:
@@ -2,7 +2,7 @@ import { ref, onMounted } from 'vue'
|
||||
import { getStarsCount } from '@/utils/utils'
|
||||
|
||||
const CACHE_KEY = 'github_stars_cache'
|
||||
const CACHE_DURATION = 24 * 60 * 60 * 1000 // 24 hours
|
||||
const CACHE_DURATION = 24 * 60 * 60 * 1000
|
||||
|
||||
export function useStars() {
|
||||
const stars = ref<number>(0)
|
||||
|
||||
Reference in New Issue
Block a user