MobX - Observable value promised in a store constructor using fromPromise stays null when accessed in another store?
问题 So I have 2 stores, an AuthorStore : class AuthorStore { constructor() { // has author.name and is always present in storage AsyncStorage.getItem('author').then(action((data) => { this.author = JSON.parse(data); })); } @observable author = null; } and a BookStore : import AuthorStore from 'authorStore'; class BookStore { @observable book = { authorName: AuthorStore.author.name, bookTitle: null } } I keep getting an error in BookStore that it cannot get property of null , as if the AuthorStore