Nextjs Providers
Answered
Silky ant posted this in #help-forum
Silky antOP
I have the following structure :
>src
>app
>_components
>_providers
>(pages)
when i use a "useContext" in _components there are not defined , but when i use it in (pages) all look fine do you know what's going on
>src
>app
>_components
>_providers
>(pages)
when i use a "useContext" in _components there are not defined , but when i use it in (pages) all look fine do you know what's going on
Answered by Velvet ant
it seems that component are missing the "use client" directive but not sure that its your issue
11 Replies
Silky antOP
๐up
Velvet ant
can you provide some code example please ?
@Velvet ant can you provide some code example please ?
Silky antOP
is it okay if i link a github repository with a minimal example ?
@Velvet ant sure
Silky antOP
btw Thank you for taking the time to look into my issue
Velvet ant
it seems that component are missing the "use client" directive but not sure that its your issue
Answer
Velvet ant
@Silky ant
Silky antOP
โ
thanks , mb
good night ๐ Thank you very much !
Velvet ant
yw ๐
can you set the thread as answered please ? ๐ @Silky ant