How to properly set Active Object shared by multiple object lists?

I have a workshop app with 4 Object Lists that share an “Active Object” variable. It’s currently experiencing non deterministic behavior in the case where one of the object lists has one object and the others are empty - On loading the workshop, sometimes the active object will populate with the one object present, other times it will remain undefined/null. I’d like to ensure the former happense every time on load.

Is there a first-class pattern to avoid this?

Hi @arielattias,

Do each of these object list widgets use the same input object set? If not, you may be running into issues with each trying to set an auto selection.

I’d recommend trying to set up your module in a way where only one widget is responsible for the auto selection if you have that configured, and ideally to only have widgets share selection state if they share the same input object set.