Hello everyone, I can not understand why the function is undefined but at the same time it is called ....
datastore:
onLoadUser: function (user) { Api.loadUser(user) .then((user) => alert(Actions.loadUser.completed(user))) <===== undefined .catch((err) => console.log(err.error)); }, onLoadUserCompleted: function (user) { console.log(user); <===== в консоль выводится },