Currently, on EVERY answer click, app is pinging backend and writing current state of game answers to DB
This have been done initially, to ensure that players won't reset back to the beginning of the game to re-answer on page refresh
There is possible way to handle this: Detect browser's actions (Route change, Refresh, Tab close, etc.) and update game answers in DB (Of course, this includes updates at the end of the game)
Currently, on EVERY answer click, app is pinging backend and writing current state of game answers to DB
This have been done initially, to ensure that players won't reset back to the beginning of the game to re-answer on page refresh
There is possible way to handle this: Detect browser's actions (Route change, Refresh, Tab close, etc.) and update game answers in DB (Of course, this includes updates at the end of the game)