Next.js Discord

Discord Forum

A component was suspended by an uncached promise. Getting all over the project ?

Answered
Flemish Giant posted this in #help-forum
Open in Discord
Avatar
Flemish GiantOP
How can i find which page or compoent have the issue
Image
Image
Answered by B33fb0n3
if you just encountered this error, check the components that you edited last. If this error is there for a longer time, search through every 'use client' component and check if there is async inside your component
Image
View full answer

6 Replies

Avatar
@Flemish Giant How can i find which page or compoent have the issue
Avatar
if you just encountered this error, check the components that you edited last. If this error is there for a longer time, search through every 'use client' component and check if there is async inside your component
Image
Answer
Avatar
@Flemish Giant solved?
Avatar
@B33fb0n3 <@810562263928406016> solved?
Avatar
Flemish GiantOP
Yeah its solved but no by this the problem was the client component do not supposr the async and i use the async everywhere topo make the backend req like (async()=> axios.get('. .....')()) so i remove all the async wait and replace with the .then and vallah the problem is solved
@B33fb0n3 i really appreciate you message to ask is it solve or not current i am done with the learning and try to work on project and then afeter some project i will aapply for the job
if i stuck in some problem i will as you :sunglasses_1: looking forward bro
Avatar
happy to help