console.log() appear in both server (terminal) and client (browser), why ? #59329
Replies: 3 comments 2 replies
-
Client components, are the components we've used up till now, and just like that, they are SSR'd: That is, they do run in the server too, to collect their initial HTML, and what not. The different thing is that Server Components only render server side, so the logs created in those, would not show in the browser. |
Beta Was this translation helpful? Give feedback.
-
I'm using 14.0.2 and the console.log in client components only works in the browser. |
Beta Was this translation helpful? Give feedback.
-
I am also experiencing confusion as the logs from the Client Component are appearing both in the browser console and the development server console. I am using Next.js 14.2.3. |
Beta Was this translation helpful? Give feedback.
-
Hey,
I found something weird.
When i use 14.0.+
When i do console.log() in client component, it's appear on the terminal and client.
I believe i remember it was only appear in browser without server.
Is it normal ? Or is there any behaviour change ?
Beta Was this translation helpful? Give feedback.
All reactions