Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
essuraj opened this issue Apr 30, 2024 · 0 comments

Comments

@essuraj
Copy link

essuraj commented Apr 30, 2024

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 essuraj changed the title Seperate fetchMethods and react-query hooks in separate files Seperate fetchMethods and react-query hooks in separate files to use in server and client side Apr 30, 2024
@essuraj essuraj changed the title Seperate fetchMethods and react-query hooks in separate files to use in server and client side Seperate fetchMethods and react-query hooks in separate files to use in server and client side - Nextjs Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant