Would it be reasonable to add a ViewModel#onSucces...
# tornadofx
g
Would it be reasonable to add a ViewModel#onSuccess( successFn: () -> Unit = {} ) function so that it caches the successFn for use when ViewModel#commit() is called? In my use case it's simpler to so this external to the ViewModel than override the onCommit() function in the class declaration.