+
- {#each snapshots as entry, idx}
- {#if idx === 0 || createdOnDay(entry.createdAt) != createdOnDay(snapshots[idx - 1].createdAt)}
+ {#each $snapshots as entry, idx (entry.id)}
+ {#if idx === 0 || createdOnDay(entry.createdAt) != createdOnDay($snapshots[idx - 1].createdAt)}