Next.js Discord

Discord Forum

renders

Unanswered
Asian black bear posted this in #help-forum
Open in Discord
Asian black bearOP
hello i am an amateur.

so assume i have a log statmenet in the body of a component , in the console it it logged 6 times. as im in the dev mode , so times in production.

i use app router of next js 14 , and i have nested layouts ( one the root layout and the other my layout for admin panel we say)

3 renders is okay ? it was like 20 re-renders before i switched to react-query! i want to learn from you on this. thanks

0 Replies