I’m pretty sure this is a bug… and potentially a major one at that… which could break a lot of things.
It’s not only affecting custom states, but groups and RGs…
Previously, you could set a Group’s datasource to be empty based on a condition. If the condition was met, the data would be empty, regardless of its initial datasource.
The same for a RG - you could set an initial datasource, and have condition which, if true, would make the datasource empty.
I use this concept all the time, in loads of apps.
Now, it seems that’s no longer possible - if a group or RG has an initial datasource, and a conditional to set the datasource to empty, the data remains as the initial datasource.
This was definitely not the case before - I’m also pretty sure you could always clear a custom state, by setting it to an empty value - which would set it to empty, regardless of the default value.
(not to be confused with the ‘Reset Data’ or ‘Clear List’ actions - both of which do NOT set the group or RG data to empty, but back to their original initial values.).
The only workaround is to never have a conditional datasource set to empty, but rather always leave the initial datasource empty, and set it conditionally.
This change could cause a lot of problems for existing apps…