Level 2
You can wrap the object in a reactive():
// should work with ref() as well
const edit = reactive({name: false, lastName: false});
Or make the two separate ref() variables outside of the object and assign them inside it:
const name = ref(false);
const lastName = ref(false);
let edit = {
name: name,
lastName: lastName
}
1 like