msolters / Tiles

Dynamic CV and Resume app
http://tilesjs.meteor.com
0 stars 1 forks source link

Implement loading screen #92

Open epheterson opened 9 years ago

epheterson commented 9 years ago

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.

msolters commented 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:

epheterson commented 9 years ago

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.

msolters commented 8 years ago

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.