I am using Vue3 composition API and tried resetting the form with the help of Object.assign. Unfortunately, it doesn't reset the form when there are nested properties.
const initialForm = {
    name: "",
    details: {
        type: ""
    }
};
const form = reactive({ ...initialForm });
const resetForm = () => {
    Object.assign(form, initialForm);
}
Here name is reset but details.type is not reset. What should be the approach to reset form here?