Help with SSR architecture
Unanswered
Sjoerd posted this in #help-forum
Original message was deleted.
6 Replies
Original message was deleted
Dutch
you can use await in async components to fetch data
Yes that is indeed very handy but i think async in components is only possible for server components and I cannot populate a zustand store in a server component for as far as I know
@Sjoerd Yes that is indeed very handy but i think async in components is only possible for server components and I cannot populate a zustand store in a server component for as far as I know
Dutch
yep but you dont need zustand for this, its data fetching and can be done with fetch
if you need that data in client components, get it with useQuery
okay thank you for the help!
@Sjoerd pls do not delete the original question unless it contains secret info which should never be posted in the first place in a public server
mark the solution instead
mark the solution instead