Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow database queries can cause crashes, ”loading...” prompts needed #12

Open
basic-ohjelmoia opened this issue Aug 26, 2018 · 0 comments

Comments

@basic-ohjelmoia
Copy link
Contributor

When the database responds slowly, the game can sometimes end up in a situation which results a crash due to undefined objects/parameters which have been waiting to receive data from the db.

One example of this happening would be the Home.js ”rolling highscores.” We should put place some measures to ensure that the game recovers from situations such like these. Simple ”loading, please wait” prompts should be enough (i.e. with highscores the game would show a prompt like this until the db.highscorelisting.lenght can be verified being >0).

There are probably several pages/components within the game where this phenomena should be taken into consideration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant