openapi-codegen icon indicating copy to clipboard operation
openapi-codegen copied to clipboard

Seperate fetchMethods and react-query hooks in separate files to use in server and client side - Nextjs

Open essuraj opened this issue 9 months ago • 0 comments

Thanks for this amazing plugin. My current setup is to using Next 14.2.2 with react query. I need to use the fetch methods in server side (react hooks dont work in SSR). but because they are all in same file, i get SSR error as it import client side components. An option to seperate the files will be great thankyou.

essuraj avatar Apr 30 '24 05:04 essuraj