So for traditional DDP and data loading (not Apollo), what are some ways to display a placeholder for content while data is loading over subscription? Something like Facebook does for posts on a timeline?
Imagine an infinity scroll, but when you scroll, placeholders appear, and after subscription returns data, they are rendered with real content.
I know that I could use an intermediate local collection to do something like that, but I was wondering if anyone managed to use internal latency compensation engine to do this. In some way, to me it is latency compensation for data loading. So you would create dummy entries which would be rendered, and then after subscription is subscribed fully, those documents from the server would rewrote dummy entries, and UI would be “reverted” like in the case of failed server-side method.
Has anyone done anything like this?