useEffect in layout.tsx
Unanswered
Chinese Alligator posted this in #help-forum
Chinese AlligatorOP
is using useEffect in layout.tsx, good practice
5 Replies
@B33fb0n3 that depends
Chinese AlligatorOP
can you elaborate the depends part
@Chinese Alligator is using useEffect in layout.tsx, good practice
Catla
If it has a direct use case there, then it is fine.
I'm assuming you're wanting to pass something down to {children} that gets generated from useEffect?