I've encountered an issue while using the Vue3 composition API where attempting to reset a form with nested properties using Object.assign does not work as expected.
const initialForm = {
name: "",
details: {
type: ""
}
};
const form = reactive({ ...initialForm });
const resetForm = () => {
Object.assign(form, initialForm);
}
Although the "name" property is successfully reset, the "details.type" property remains unchanged. Any suggestions on how to properly reset the entire form including nested properties?