I need to patch the values of only the pristine properties of my reactive form in Angular.
I have a websocket service that sends me updates done to a user, and would like to patch the form according to the payload I receive, but not changing dirty properties
This is the code doing the update:
this.messageService.subscribe('updates', 'user', frame => {
this.userProfileForm.patchValue(frame.payload)
})
Is there an easy way to do that or do I have to remove all dirty fields from my update object ?