Skip to content

Commit

Permalink
docs: add attention
Browse files Browse the repository at this point in the history
  • Loading branch information
hchlq committed Aug 2, 2023
1 parent 5b056d0 commit 04925f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/hooks/src/useVirtualList/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ const [list, scrollTo] = useVirtualList<T>(

### Params

| Property | Description | Type | Default |
| ------------ | ----------------------------------------------------- | --------- | ------- |
| originalList | The original list that contains a lot of data entries | `T[]` | `[]` |
| options | config | `Options` | - |
| Property | Description | Type | Default |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ------- |
| originalList | The original list that contains a lot of data entries. **Attention: must undergo useMemo processing or never change, otherwise there will be a dead loop** | `T[]` | `[]` |
| options | config | `Options` | - |

### Options

Expand Down
8 changes: 4 additions & 4 deletions packages/hooks/src/useVirtualList/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ const [list, scrollTo] = useVirtualList<T>(

### Params

| 参数 | 说明 | 类型 | 默认值 |
| ------------ | ------------------ | --------- | ------ |
| originalList | 包含大量数据的列表 | `T[]` | `[]` |
| options | 配置项 | `Options` | - |
| 参数 | 说明 | 类型 | 默认值 |
| ------------ | ------------------------------------------------------------------------------ | --------- | ------ |
| originalList | 包含大量数据的列表**注意:必须经过 useMemo 处理或者永不变化,否则会死循环** | `T[]` | `[]` |
| options | 配置项 | `Options` | - |

### Options

Expand Down

0 comments on commit 04925f8

Please sign in to comment.