shabados / presenter

Desktop app for presenting the Shabad OS Database on projectors, TVs, and live streams
https://shabados.com
MIT License
19 stars 15 forks source link

Fields not showing up properly for overlay #535

Closed bhajneet closed 4 years ago

bhajneet commented 4 years ago

If english translation is on and refreshing example overlay sometimes the english doesn't show up and you can make it show up by toggling off/on in settings (or refreshing enough times maybe)

Harjot1Singh commented 4 years ago

Reproduced by setting network to fast 3g

Harjot1Singh commented 4 years ago

https://github.com/ShabadOS/desktop/blob/dev/app/frontend/src/App.js#L89

This thing. Causes a race condition, since without setState, does not let react now the settings have updated.

Harjot1Singh commented 4 years ago

Reproduced on presenter too with the same conditions.

Harjot1Singh commented 4 years ago

TTR: 15mins