Closed li-boxuan closed 6 years ago
It has a problem. If the user visits a repo which doesn't have pre-fetched issues, gh-board will remind sth like 'this repo doesn't have issues'.
Also, this strategy wouldn't work if the user redirects to another repo from the dashboard because it uses an instance variable to determine if it is the first fetch. That variable is initialized when the webpage is opened the first time.
ack c0fa1af1ed152615d7019be30d6e40fb6833ec30
@gitmate-bot rebase
Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently :warning:
Automated rebase with GitMate.io was successful! :tada:
Hey @li-boxuan, Please read the following log in order to understand the failure reason. It'll be awesome if you fix what's wrong and commit the changes.
LGTM 💯
LGTM
@gitmate-bot ff
Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently :warning:
Automated fastforward with GitMate.io was successful! :tada:
This resolves _fetchAllIssues promise directly before polling starts. The benefit is that users don't need to wait until they see pre-fetched cards.
Closes https://github.com/coala/gh-board/issues/173