Next.js Discord

Discord Forum

context show undefined in dynamic routes

im trying to use context api to pass some data to dynamic page using context api but context shows undefined in dynamic routes and it works perfectly in other files why is that

the image shows the error occurring

i am finding a solution help me if anyone know i spent 4-5 hours on google but cant find any relevant solution
Answered by fuma
I hope it is not a problem with my eyes, isn't it "use client" instead of "use cline"?
View full answer

7 Replies

I hope it is not a problem with my eyes, isn't it "use client" instead of "use cline"?
Answer
and where is your provider?
It just was typo sorry my bad i literally tryed everything wested my 4 -5 productive hours lol
It sucks
Thanks for the help