I'm migrating a custom widget from v10 to v11 and despite I did manage to make it work, I don't feel like I used framework as it was supposed to be used. I have 2 questions:
1. How should I retrive up to date value of an model record?
Before v11 I used to do that like this:
Now when I have record it only gives me last saved state. As workaround I subscribed to renderers "field_changed" event and I have to internally track current value of fields I need.
1a. Is there a way to somehow subscribe only to single field change event?
In 10.0 I used to check if field is in readonly mode like this:
In 11.0 the only way I managed to get readonly status was like this:
.find(widget => widget.name === "field_name").mode === "readonly";
This seems so bad to me.
2. What would be the proper way ?
I searched through docs that @ged is working on, but there is nothing about this, and i wasn't able to figure out how this should be done.