Game sometimes does weird renderings when switching between browser tabs
gereon77 opened this issue · 1 comments
gereon77 commented
Additionally I’ve seen different house card backs in one house row already.
Things we could try:
- Do a full rerender when tab is activated again.
- Try to find locations of unnecessary render calls and reduce the render calls
- Upgrade to mobx v6 (requires an additional init call in every component c‘tor)
- Refactor IngameComponent and create smaller components like an InfluenceTracks and Supply component: https://mobx.js.org/react-optimizations.html
- Make sure we use unique keys when rendering arrays (like house cards)
gereon77 commented
Issue happened due to a buggy Chrome version. All is fine with the latest 105.0.5195.102