Last active
May 4, 2019 23:29
-
-
Save davidgilbertson/7b4e0263594d6dfed9535ad64ee333f3 to your computer and use it in GitHub Desktop.
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
const rawResults = await goGetResults(); | |
const results = parseSortAndFilterResults(rawResults); | |
if (status === 'READY') { | |
render(results); | |
} else { | |
messages.on('ready', data => render(data.results)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment