0👍
✅
this.$store.getters.loadedPosts
seems to be an array. To get only the first 4 items you would have to slice it (assuming the lastest post is the first in the array).
loadedPosts() {
return this.$store.getters.loadedPosts.slice(0, 4).map(bp => {
return {
id: bp.slug,
...
};
});
}
Source:stackexchange.com