-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Feat rsc #6516
Conversation
@@ -0,0 +1,9 @@ | |||
'use server'; |
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.
文件名规范直接修改过来吧
冲突处理下 |
|
@@ -0,0 +1,23 @@ | |||
'use server'; |
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.
Server.tsx 这个文件名可以和其他组件一样,改个语义化的名称吧,不然会以为是段 Server 端的通用逻辑
@@ -0,0 +1,23 @@ | |||
'use server'; |
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.
use server 应该是用来标志 server action 的,组件默认情况下就是 server component
Using #6502 |
服务端组件代码转换逻辑完善: