Created
April 27, 2020 00:01
-
-
Save rosschapman/1a0fa302717232af54c08f41201972cd to your computer and use it in GitHub Desktop.
Maybe fetch and display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (books.ids.length > 0) { | |
this.stateMachine(this.statuses.waiting as Status); | |
let suggestedBooks = await this.apiAdapater.books.suggest(); | |
this.stateMachine(this.statuses.success as Status); | |
this.model.updateAll("suggestedBooks", suggestedBooks); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment