timiimit / UT4MasterServer

Reimplementation of Epic's server for Unreal Tournament pre-alpha
https://ut4.timiimit.com
59 stars 18 forks source link

Frontend: Footer showing default (0) values #124

Closed Saibamen closed 1 year ago

Saibamen commented 1 year ago

FYI: @caseyswilliams

Previously we had onMounted(ServerStore.fetchGameServers); in https://github.com/timiimit/UT4MasterServer/blob/master/UT4MasterServer.Web/src/components/Footer.vue

Repro steps

  1. Open new web browser tab
  2. Go to any frontend page, except Servers, for example https://ut4.timiimit.com/

Expected Results

Footer shows current values without manually clicking on Refresh button or going into /Servers page

Actual Results

Footer always shows default values (0). Need to click on "Refresh" button or go to /Servers page

caseyswilliams commented 1 year ago

This actually updates automatically after 30 seconds, not only after refresh button or hitting servers page, but yeah it should fetch immediately, too. Fixed in PR #128