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

remove-unused-expressions: "use client" false warning #211

Closed
EvgenyOrekhov opened this issue Jun 25, 2024 · 2 comments
Closed

remove-unused-expressions: "use client" false warning #211

EvgenyOrekhov opened this issue Jun 25, 2024 · 2 comments

Comments

@EvgenyOrekhov
Copy link

Example code:

"use client";

Expected: no warning from remove-unused-expressions

Actual: warning from remove-unused-expressions - Unused expression statement

"use client"; is a special React directive and should be allowed, see https://react.dev/reference/rsc/use-client

@coderaiser
Copy link
Owner

coderaiser commented Jun 26, 2024

Just excluded use client and landed in v35.36.1 🎉.

Is it works for you?

@EvgenyOrekhov
Copy link
Author

Yes, it works now, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants