Next.js Discord

Discord Forum

Simple Framer Animation Issue

Answered
Band-tailed Gull posted this in #help-forum
Open in Discord
Original message was deleted.
Answered by fuma
It is not recommended to add "use client" in the root layout, consider making a wrapper instead?
and the layout will be re-rendered when navigating between pages, you can wrap the children inside of motion.div (in a layout)
View full answer

2 Replies

It is not recommended to add "use client" in the root layout, consider making a wrapper instead?
and the layout will be re-rendered when navigating between pages, you can wrap the children inside of motion.div (in a layout)
Answer
Band-tailed Gull
yeah i figured it probably wasnt the best idea and didnt even consider making a wrapper, ill look into that! thank you @fuma ❤️