Button style classes binding doesnt work on custom property

I am trying to change the style of a button based on a custom property that i defined on my page. The custom property is a sting, and i bound the button.props.style.classes to this custom property but when the property is set at runtime, the style doesnt change. It only changes is i change the custom property and save the project.

On the other hand I setup this same scenario but instead of binding to the custom property I used a tag binding to the style classes and it works as expected? Is there some reason that custom properties on a page aren’t updated at runtime?

image

this is in a custom message handler script that is called to set the property.
image