cara menggunakan data props di dalam pengaturan

props is a reactive object, but props.barcodePulse is a literal value (non-reactive). Wrapping the literal value with a ref does not restore the reactivity from props, but rather creates a new independent ref.

To maintain the reactivity in the composable, use toRefs or toRef to get the barcodePulse:

const { barcodePulse } = toRefs(props) // ✅
// or
const barcodePulse = toRef(props, 'barcodePulse') // ✅

usePulse(barcodePulse)
Lucky Lizard