Just started using vue, but encountering this error message
Received an unexpected mutation for the "amountValue" prop.
What could be causing this issue?
<q-input v-model="amountValue"></q-input>
<script>
export default defineComponent({
...
props: {
amountValue: Number
},
setup(props, { emit }) {
const amount = computed({
get: () => props.amountValue,
set: (value) => {
emit("update:amountValue", value)
},
})
...
},
})
</script>