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

Feat rsc #6516

Closed
wants to merge 15 commits into from
Closed

Feat rsc #6516

wants to merge 15 commits into from

Conversation

Coooder-X
Copy link

服务端组件代码转换逻辑完善:

  • 处理服务端组件中导入导出的语句
  • 测试

@@ -0,0 +1,9 @@
'use server';
Copy link
Collaborator

Choose a reason for hiding this comment

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

文件名规范直接修改过来吧

@ClarkXia
Copy link
Collaborator

ClarkXia commented Sep 7, 2023

冲突处理下

@CLAassistant
Copy link

CLAassistant commented Sep 7, 2023

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ chenjun1011
❌ Coooder-X
You have signed the CLA already but the status is still pending? Let us recheck it.

@@ -0,0 +1,23 @@
'use server';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Server.tsx 这个文件名可以和其他组件一样,改个语义化的名称吧,不然会以为是段 Server 端的通用逻辑

@@ -0,0 +1,23 @@
'use server';
Copy link
Collaborator

Choose a reason for hiding this comment

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

use server 应该是用来标志 server action 的,组件默认情况下就是 server component

@wssgcg1213
Copy link
Collaborator

Using #6502

@wssgcg1213 wssgcg1213 closed this Oct 12, 2023
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

Successfully merging this pull request may close these issues.

5 participants