Initial data in client component?
Unanswered
Asiatic Lion posted this in #help-forum
Asiatic LionOP
Is there a way to fetch initial data for a client side component on the server (so without using useEffect or useSWR)? The workaround I use is having a server component wrap each client component but this is quite clunky/doesn't allow me to directly reference server components. This pattern is similar to Remix loaders/getServerSideProps if my mental model is right? This with server actions would obliviate the need to do any direct API calls on the client which would be really nice for DX.