You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is currently no abstraction about the user and logging system, thus many modules that depends on it have to write lines like:
var user = Beluga.getInstance().getModuleInstance(Account).loggedUser
if (user != null) {
\\do something
} else {
\\handle it, more often that not by raising a typical trigger like following
this.triggers.actionFail.dispatch({error : MissingLogin});
}
This is quite a hassle and looks like a bad design.
The text was updated successfully, but these errors were encountered:
There is currently no abstraction about the user and logging system, thus many modules that depends on it have to write lines like:
This is quite a hassle and looks like a bad design.
The text was updated successfully, but these errors were encountered: