Next.js Discord

Discord Forum

Getting undefined from a local variable from component after render

Unanswered
Polar bear posted this in #help-forum
Open in Discord
Polar bearOP
If I log the value from my variable defined inside a client component, I get the values logged , but directly afterwards, I get undefined, and it breaks my rendering.

I am new to NextJS 13 with app directory, but not NextJS, so this issue is new to me.

1 Reply

can you share the code of the component? this looks weird