]> git.cworth.org Git - lmno.games/commitdiff
Return null from GameInfo and PlayerInfo if they have no populated props
authorCarl Worth <cworth@cworth.org>
Fri, 5 Jun 2020 17:26:25 +0000 (10:26 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 6 Jun 2020 11:46:51 +0000 (04:46 -0700)
These info objects get filled in with data that is streamed from the
server "/events" API. While the page is still loading, we don't want
to brifly see the skeleton of these objects drawn with no real data
inside them.

It's much cleaner to return null instead. This gives a clean result
where these sections of the page only appear when fully formed.


No differences found