Skip to content

Why Next 13.4 wants me to add "use-client" to a custom hook? #50549

Discussion options

You must be logged in to vote

Yeah but you have import { colors } "@core"; which I guess touches a file core/index.ts, which in turn probably, imports useOpen, somehow, right?

So my question: Do you export other things from the module? is kind of true, you are importing this hook into page, albeit not directly, but through a barrel file of sorts, right?

Replies: 4 comments 14 replies

Comment options

You must be logged in to vote
1 reply
@EliyahuCohen
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
13 replies
@icyJoseph
Comment options

@Maverick17user
Comment options

@Maverick17user
Comment options

@icyJoseph
Comment options

Answer selected by Maverick17user
@icyJoseph
Comment options

@Maverick17user
Comment options

@Maverick17user
Comment options

@icyJoseph
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants