pub-trivia / trivia-app

Play trivia with friends around the world
https://pub-trivia.herokuapp.com
5 stars 4 forks source link

Display a countdown screen before the quiz starts #144

Closed cynthiarich closed 4 years ago

cynthiarich commented 4 years ago

This PR adds a quick and dirty countdown screen to the beginning of the game. This screen serves two purposes:

  1. It is a gentler transition into the game. Only one user clicks the "Everyone is here" button. So we want users to have some warning before we throw the first question at them.
  2. It also helps us prevent a race condition where some users were receiving the first question before they had actually been pushed to the /game page. This meant the first question didn't show up for them. This adds a delay to ensure everyone is on the /game page before we send the first question.