Skip to content

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

@essuraj

Description

@essuraj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions