Hello,
This update is for plugins element builders. As you’ve noticed the code you write gets run when the element becomes visible, which can lead to the exposed states not having the right value at first. We added a way for you to add an initialization function for an exposed state, which should return what the state should be until another part of your code (in initialize or update) changes the value. You can access the properties object in that function.
Note that for existing states, you’ll need to paste this in the code editor to start adding code, while for new states this will be pre filled by the editor.
function(properties, context) {
}