Change name of another component when name of component is changed

I want to have a situation where component 1 is linked to component 2 so that when the name of the component 1 is changed, the name of component 2 will update.

However, unfortunately I can't find a clean hook to do this, I tried overriding the default textbox on each GH component where the name can be set, with the code below which will call my own event for the name change.