Skip to content

Conversation

lumirlumir
Copy link
Member

Prerequisites checklist

What is the purpose of this pull request?

In this PR, I've removed unnecessary "use client" and "use server" directives.

According to the official React documentation and my understanding, the "use client" and "use server" directives only have meaning when used in the context of React Server Components.

However, Code Explorer is currently a Single Page Application (SPA), and the React Server Component paradigm is not used anywhere.

Therefore, removing these directives should be safe, and I confirmed this change introduces no side effects.

Additionally, there were a warning caused by the "use server" directive when running npm run build, as shown below:

스크린샷 2025-08-30 184836

Since this change, the warning no longer appears.

What changes did you make? (Give an overview)

In this PR, I've removed unnecessary "use client" and "use server" directives.

Related Issues

N/A

Is there anything you'd like reviewers to focus on?

N/A

@eslint-github-bot
Copy link

Hi @lumirlumir!, thanks for the Pull Request

The pull request title isn't properly formatted. We ask that you update the pull request title to match this format, as we use it to generate changelogs and automate releases.

  • The length of the commit message must be less than or equal to 72

To Fix: You can fix this problem by clicking 'Edit' next to the pull request title at the top of this page.

Read more about contributing to ESLint here

@eslintbot eslintbot added this to Triage Aug 30, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Aug 30, 2025
@lumirlumir lumirlumir changed the title refactor: remove unnecessary "use client" and "use server" directives refactor: remove unnecessary "use client" "use server" directives Aug 30, 2025
Copy link

netlify bot commented Aug 30, 2025

Deploy Preview for eslint-code-explorer ready!

Name Link
🔨 Latest commit c8db23f
🔍 Latest deploy log https://app.netlify.com/projects/eslint-code-explorer/deploys/68b2ccf0db22f80008404706
😎 Deploy Preview https://deploy-preview-131--eslint-code-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@amareshsm amareshsm added the accepted There is consensus among the team that this change meets the criteria for inclusion label Sep 1, 2025
Copy link
Member

@amareshsm amareshsm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks.

@amareshsm amareshsm merged commit d8e019f into main Sep 1, 2025
9 checks passed
@amareshsm amareshsm deleted the refactor-remove-unnecessary-use-client-and-use-server-directives branch September 1, 2025 17:23
@github-project-automation github-project-automation bot moved this from Needs Triage to Complete in Triage Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion chore
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

2 participants