#is it normal to feel like i m putting

1 messages · Page 1 of 1 (latest)

slate valve
#

mostly, I think the openapi client needs to be changed so that it is configured on the server (?) and then reduce the reliance on react-query over time.

I'm just not sure if that's ideal, or if react-query and handling data-fetching on the client isn't as bad as I think it is. I'm considering just adding 'use client' on top of my page.tsx files but i'm really trying to avoid it

sinful kraken
#

ideally the API you are using should be able to be called without any react-query wrappers so they could be called within async components

#

but if this really matters depends a lot on your app. do you need this fetched data to be available during the initial rendering? if not then there's no issue in requesting it only with react-query