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
refactor: clean up useClient #23280
refactor: clean up useClient #23280
Conversation
No changes detected in Branching Preview Branches by Supabase. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
fb0ed96
to
940bb11
Compare
@@ -1,4 +1,5 @@ | |||
import * as React from 'react' | |||
'use client' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one is on an index file because it exports an object and I think you will otherwise run into the "cannot dot into a client component" problem
940bb11
to
7a19358
Compare
7a19358
to
f4ab114
Compare
Move
useClient
s to the actual file instead of index files, so that (a) we don't ship unnecessary client-side code and (b) we don't get the "can't dot into client component from server" error when trying to use MDX in RSCs.