Next.js Discord

Discord Forum

Passing state from server component to client components

Unanswered
Rough harvester ant posted this in #help-forum
Open in Discord
Rough harvester antOP
So I might be totally conceptually missing something here - but basically this is my question. If I have a server component and I make an API call on it, how can I distribute the result from that call to client components (aside from prop drilling). To be more specific, I'm wondering if its possible to update, say a redux store (or zustand) with data that has been fetched on the server side and be able to use that data on the client side. Of course, hooks don't run on server side so I can't just simply update the state with the info.
Thanks for reading, I hope it makes sense and is an acceptable question for this forum.
Brad

0 Replies