How to persist data between server components in NEXT13 app directory? I'm fetching api to check if user is authorized (from cookies saved in login) in the root layout and I want to save the response (contains the user Id) for later usage. Is that possible or I should try different approach ?
All state management libraries work only for client side components. I need to do that in the root layout, but it nests server components that's why I can't turn it into client comp.