Singleton's don't work so well in cases where you ...
# tornadofx
g
Singleton's don't work so well in cases where you may have many instances of the same view each with their own state. In javafx, your state is maintained in Properties which update the view reactively through binding. The ViewModel makes managing this quite easy. Scopes help to separate out or share state between views (depending on your requirements)
👍 2