Skip to content

Commit 9d4a80e

Browse files
Merge branch 'main' into react-complier
2 parents f6e0f9a + 3a7a143 commit 9d4a80e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/analyze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858

5959
- name: Download base branch bundle stats
6060
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
61-
if: success() && github.event.number
61+
if: success()
6262
with:
6363
workflow: analyze.yml
6464
branch: ${{ github.event.pull_request.base.ref }}

src/content/reference/react/cache.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ function App() {
414414

415415
如果以上问题都不适用,那么可能是与 React 检查缓存中是否存在内容的方式有关。
416416

417-
如果参数不是原始数据类型(https://developer.mozilla.org/zh-CN/docs/Glossary/Primitive)(例如对象、函数、数组),请确保传递的是相同的对象引用。
417+
如果参数不是[原始数据类型](https://developer.mozilla.org/zh-CN/docs/Glossary/Primitive)(例如对象、函数、数组),请确保传递的是相同的对象引用。
418418

419419
在调用记忆化函数时,React 将查找输入参数,以查看是否已经缓存了结果。React 将使用浅相等确定是否存在缓存。
420420

0 commit comments

Comments
 (0)