vue-use-whenever
v1.0.0
Published
Vue 3 watch shorthand triggering only when value is truthy
Maintainers
Readme
Installation
npm install vue-use-wheneverUsage
import { whenever } from 'vue-use-whenever'
import { ref } from 'vue'
const isReady = ref(false)
whenever(isReady, () => {
console.log('Ready!')
})
setTimeout(() => {
isReady.value = true
}, 100)License
MIT
Extracted from VueUse for standalone use.
