We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f67b77 commit 64a776fCopy full SHA for 64a776f
1 file changed
src/content/reference/react/StrictMode.md
@@ -1230,11 +1230,11 @@ li {
1230
1231
```
1232
...
1233
-✅ Adding animal to the map. Total animals: 10
+✅ 将猫添加到 map 中。当前猫的总数:10
1234
1235
-❌ Removing animal from the map. Total animals: 0
+❌ 将猫从 map 中移除。当前猫的总数:0
1236
1237
1238
1239
1240
**这是符合预期的。** 严格模式确认了 ref 回调被正确清理,因此数量永远不会超过预期值。修复之后,不存在内存泄漏,所有功能都按预期工作。
0 commit comments