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

[RFC] Remove useEffect from the codebase for server bundling #7007

Open
ClarkXia opened this issue Oct 25, 2024 · 0 comments
Open

[RFC] Remove useEffect from the codebase for server bundling #7007

ClarkXia opened this issue Oct 25, 2024 · 0 comments
Labels

Comments

@ClarkXia
Copy link
Collaborator

ClarkXia commented Oct 25, 2024

Summary | 概述

No response

Motivation | 背景

When the bundle runs on the server side, useEffect is not executed. ICE can omit any useEffect code to reduce the bundle size.

Usage example | 使用示例

No response

Detailed design | 方案设计

Server React API optimization including useEffect, useLayoutEffect and useState.

Add an SWC plugin to implement this functionality, with special attention to the handling of the bindingScope Indent.
This feature is optional, and it can be active by user config.

Additional context | 额外信息

No response

@ClarkXia ClarkXia added the rfc label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant