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

Bug: Mark react code that need to run on client side with 'use client' #196

Open
soofstad opened this issue Oct 23, 2024 · 2 comments
Open

Comments

@soofstad
Copy link
Owner

Code that need to be rendered on client should be marked with 'use client'.
See https://react.dev/reference/rsc/use-client#using-third-party-libraries for details.

This will ensure compatibility with frameworks like Nextjs, and react projects using server-side-rendering.

@sebastianvitterso
Copy link
Collaborator

Does this mean that every related file needs that, or just AuthContext.tsx, since that's the application interface?

@soofstad
Copy link
Owner Author

This is all a bit new to me. But should only be needed in AuthContext as the rest is included in that.

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

2 participants