How to get data from composition to layout.tsx and then pass that data to children components ?
Unanswered
Cinnamon posted this in #help-forum
CinnamonOP
How to get data from composition to layout.tsx and then pass that data to children components ?
2 Replies
Large oak-apple gall
Probably a root provider that is wrapping the layout.tsx in question, then useContext() to grab the data you need, or other state management libs
https://nuqs.47ng.com/ This specifically is a really interesting way of managing state data (data accessed multiple places or a lot of times)