openapi-codegen
openapi-codegen copied to clipboard
Seperate fetchMethods and react-query hooks in separate files to use in server and client side - Nextjs
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.