I'm currently using TypeScript in conjunction with this library. In my file HomePage.vue
, I have the following code:
<template>
<div>Enter text here: <input v-model="someName" type="text"></div>
</template>
<script lang="ts">
import { Component, Model, Vue } from "vue-property-decorator";
@Component
export default class HomePage extends Vue {
@Model() someName: string;
}
</script>
Upon compilation and running in the browser, when I enter something in the input box, I encounter the following Vue warning in Chrome console:
[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "someName"
Does anyone have a solution to tackle this issue?