adrianhajdin / threads

Develop Threads, Next.js 13 app that skyrocketed to 100 million sign-ups in less than 5 days, and dethroned giants like Twitter, ChatGPT, and TikTok to become the fastest-growing app ever!
https://threads-psi.vercel.app
1.42k stars 272 forks source link

MAXIMUM CALL STACK SIZE EXCEEDED #118

Closed ssaintx closed 1 week ago

ssaintx commented 1 week ago

When i am fetching threads. I am not getting fetches. instead i am getting these errors. And localhost:3000 is not showing. It is just white display

POST / 200 in 1447ms DB OK ⨯ RangeError: Maximum call stack size exceeded at String.replace () digest: "1737046534" POST / 200 in 1244ms.

ssaintx commented 1 week ago

i fixed this error.

Error: Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.
at Home (page.tsx:11:97)

just at the top instead of "use client" -> "use server"