2 Answers2

0

One possibility is that the posts array is empty. We can help better if you show us the posts object

demiglace
  • 405
  • 1
  • 5
  • 12
0

Maybe posts is undefined at the first rendering because it comes from an async call.

export default function Post({ posts = []}) { ... }
Antonio Pantano
  • 4,592
  • 2
  • 23
  • 26