Skip to content

Conversation

@WuMingDao
Copy link
Contributor

Translated the 'use no memo' directive documentation from English to Chinese.

Translated the 'use no memo' directive documentation from English to Chinese.
@vercel
Copy link

vercel bot commented Oct 20, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
zh-hans-react-dev Ready Ready Preview Comment Oct 26, 2025 10:16am

@github-actions
Copy link

github-actions bot commented Oct 20, 2025

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

```

When a function contains `"use no memo"`, the React Compiler will skip it entirely during optimization. This is useful as a temporary escape hatch when debugging or when dealing with code that doesn't work correctly with the compiler.
当一个函数包含 "use no memo" 时,React 编译器会在优化过程中完全跳过它。在调试或处理与编译器不兼容的代码时,这是一个很有用的临时后门。
Copy link
Collaborator

Choose a reason for hiding this comment

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

escape hatch 翻译为脱围机制,词汇表里面有这个

### 何时使用 `"use no memo"` {/*when-to-use*/}

`"use no memo"` should be used sparingly and temporarily. Common scenarios include:
`"use no memo"` s应谨慎并临时使用。常见场景包括:
Copy link
Collaborator

Choose a reason for hiding this comment

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

英文字母没删完

#### Debugging compiler issues {/*debugging-compiler*/}
When you suspect the compiler is causing issues, temporarily disable optimization to isolate the problem:
#### 调试编译器问题 {/*debugging-compiler*/}
当你怀疑编译器引起问题时,可以暂时禁用优化来定位问题:
Copy link
Collaborator

Choose a reason for hiding this comment

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

isolate 表示的是隔离的意思吧?和定位还是有区别的

@WuMingDao
Copy link
Contributor Author

Fixed this question

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.

2 participants