i have a problem with my props editToTask :
app.js:42491 [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: "taskToEdit"
component TaskComponent.vue
<template>
...
<button
type="button"
class="btn btn-secondary"
data-toggle="modal"
data-target="#editModal"
@click="getTask(task.id)"
>Editer</button>
</li>
<edit-task v-bind:taskToEdit="taskToEdit"></edit-task>
...
</template>
<script>
export default {
data() {
return {
tasks: {},
taskToEdit: "",
};
},
methods: {
getTask(id) {
axios
.get("http://localhost:3000/tasks/edit/" + id)
.then((res) => (this.taskToEdit = res.name))
.catch((error) => console.log(error));
},
};
</script>
component EditTaskComponent :
<template>
...
<form>
<div class="form-group">
<label for>Nom des tâches</label>
<textarea name="name" id="name" rows="4" class="form-control" v-model="taskToEdit"></textarea>
</div>
</form>
...
</template>
<script>
export default {
props: ["taskToEdit"],
};
</script>