Theo's Typesafe CultTTC
Theo's Typesafe Cult4mo ago
3 replies
rocawear

Data fetching strategy

Using nextjs 15 app dir do you fetch on server components, use react query for example to fetch on client or prefetch on server component and hydrate to client using react-query?

I am so used to fetch using react-query so thinking if i should change my idealogy:

I have app that is behind auth, just forms etc, tables (paginated) and in my brains its better to prefetch+react-query suspensequery for clientside

i have hono endpoints on top of my nextjs app that are protected and i use honorpc
Was this page helpful?