79385177

Date: 2025-01-24 17:41:10
Score: 2
Natty:
Report link

I was a begginner in nextjs that time so i didn't know. I have figured the answer long time ago but just notice my this question so here is the answer.

The thing i am doing in the Cjobs component is completely wrong, I am fetching data from the server using getJobs function and then passing it to the jobitems. You can do this i.e. fetch the data from the server only in a page component inside the app directory in app router (nextjs 14) here in docs .

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Adeel Harry