Can you get the event of a variant change on an instance?

Hi. We’re doing a plugin that updates layer styles when creating instances in a file. However sometimes the different variants have layer structure, meaning that when swapping from for example buttonIcon=false to buttonIcon=true, the newly added icon will not have the style changes made on the parent instance.

Is there a way to check the document changes for updates to the variants?