Skip to content

Commit

Permalink
docs: [Doc]: Update /zh-CN/ (#1067)
Browse files Browse the repository at this point in the history
* Update api.md

* Update patches.mdx
  • Loading branch information
puxiao authored Apr 27, 2024
1 parent 4da2e0d commit e2d222b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ title: API 概览
| `produce` | Immer 的核心 API,也暴露为 `default` 导出 | [Produce](./produce.mdx) |
| `produceWithPatches` |`produce` 相同,但它不仅返回生成的对象,还返回一个由 `[result, patch, inversePatches]` 组成的元组 | [Patches](./patches.mdx) |
| `setAutoFreeze` | 启用/禁用递归的自动冻结。默认启用 | [Freezing](./freezing.mdx) |
| `setUseStrictShallowCopy` | Can be used to enable strict shallow copy. If enable, immer copies non-enumerable properties as much as possible. | [Classes](./complex-objects.md) |
| `setUseStrictShallowCopy` | 可用于启用严格的浅拷贝。 如果启用,immer 会尽可能多地拷贝不可枚举属性 | [Classes](./complex-objects.md) |

## 导入 immer

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ let state = {
// 假设用户在向导中
// 他的更改 应该以最终是否为基本状态结束...

his changes should end up in the base state ultimately or not...
let fork = state
// 用户在向导中所作的所有更改
let changes = []
Expand Down

0 comments on commit e2d222b

Please sign in to comment.