I have a straightforward set of items that is displayed like this
{{#each items}}
{{> item}}
{{/each}}
My code defines that only the three most recent items are shown
return Items.find({}, {sort: {timestamp: -1}, limit: 3})
Whenever a new item is added, the client immediately displays it (resulting in a total of 4 items for a short time) and then removes the oldest item a few milliseconds later. This reverts back to showing only the three most recent items.
My issue is with the short moment when all 4 items are visible. Is there a way to instruct the client to remove the oldest item when displaying the newest one?