Skip to content

Commit

Permalink
docs: update faq text
Browse files Browse the repository at this point in the history
  • Loading branch information
linxianxi committed Aug 8, 2024
1 parent 3741a76 commit 96b55a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/guides/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const { setNodeRef, isSelected, isAdding, isRemoving, isSelecting, isDragging }

### FAQ

#### 1.When used with a virtual list, passing in items ensures that items that were unmounted during scrolling will still be selected after the selection ends. However, there can be issues when integrating with certain third-party virtual list libraries. A better integration can be achieved with [@tanstack/react-virtual](https://github.com/TanStack/virtual). If you don't mind not passing in items, it is recommended to use [react-virtuoso](https://github.com/petyosi/react-virtuoso), as it is simpler to use.
#### 1.When used with a virtual list, passing in `items` ensures that `block` were unmounted during scrolling will still be selected after the selection ends. However, there can be issues when integrating with certain third-party virtual list libraries. A better integration can be achieved with [@tanstack/react-virtual](https://github.com/TanStack/virtual). If you don't mind not passing in items, it is recommended to use [react-virtuoso](https://github.com/petyosi/react-virtuoso), as it is simpler to use.

not passing `items`:
![before](https://github.com/user-attachments/assets/4ec33cb8-adf5-44da-8573-9e69486c8cb2)
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/api.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const { setNodeRef, isSelected, isAdding, isRemoving, isSelecting, isDragging }

### FAQ

#### 1.当配合虚拟列表使用时,传入 `items` 可以使在滚动过程中被卸载的 `item` 在框选结束后也会被选中。但与某些虚拟列表第三方库结合会有问题,配合较好的是 [@tanstack/react-virtual](https://github.com/TanStack/virtual)。如果你不介意这个问题(不传入 `items`),建议使用 [react-virtuoso](https://github.com/petyosi/react-virtuoso),该库使用起来比较简单。
#### 1.当配合虚拟列表使用时,传入 `items` 可以使在滚动过程中被卸载的方块在框选结束后也会被选中。但与某些虚拟列表第三方库结合会有问题,配合较好的是 [@tanstack/react-virtual](https://github.com/TanStack/virtual)。如果你不介意这个问题(不传入 `items`),建议使用 [react-virtuoso](https://github.com/petyosi/react-virtuoso),该库使用起来比较简单。

不传入 `items`:
![before](https://github.com/user-attachments/assets/4ec33cb8-adf5-44da-8573-9e69486c8cb2)
Expand Down

0 comments on commit 96b55a9

Please sign in to comment.