context show undefined in dynamic routes
Answered
▄︻デZ̷o̷r̷o̷ ̷O̷P̷╅ posted this in #help-forum
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
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"?
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?
Its in layout.tsx
It just was typo sorry my bad i literally tryed everything wested my 4 -5 productive hours lol
It sucks
Thanks for the help