The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
If you're usecase wants to Share data between UI callbacks by avoiding use of "global".. look at the Article showing how we can leverage compose's inbuilt functionality to share data between UI callbacks efficiently and with more controllability.
https://community.altair.com/community?id=kb_article_view&sysparm_article=KB0117100
Hope this helps!!