Can we see/access existing singletons in an app?

Hi everyone!

Is there a way to see which singletons currently exist in an app?

I am asking for two reasons:

  1. Because I want to check that I understand how singletons work

  2. To understand if bad actors could somehow access singletons of an app when it is deployed. How safe is using singletons?

Thanks in advance!

Hi @marduk -

I’m not sure I understand the distinction you are making here. The point of st.experimental_singleton is that some object only has one instance for all users to save memory / increase performance. It’s not a security feature.

Best,
Randy