Skip to content

add "use client" to HydrationProvider #6

@cassus

Description

@cassus

Hi @traviswimer,

Thanks for this great tool!

I'm using React 18 with server components in NextJS. I get the following error

Server Error
Error: createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/context-in-server-component

Would you add "use client" to HydrationProvider?

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