Open epheterson opened 9 years ago
So this is a weird one:
DDP seeks to optimize loading time by asynchronously sending data to the client as it becomes available, but without disrupting the client's app experience.
Consequently, how do we know the difference between the following two states:
Loading screen until we know the state. If state == 0 tiles, show splash screen. If state > 0 tiles || state changed to > 0 at any time, display tiles.
That's precisely the point.
How do we know the state? AFAIK there is no mechanism to report that a query is totally done AND the results are 0. In the DDP model it is the same as "there could be data arriving in the future." This will require a bit of research.
When you reload, before tiles appear, it shows me how to create tiles as if the db is empty. That's incorrect an it should instead show loading thingie.