# 删除一个组件后，组件列表显示不全

**URL:** https://meta.discourse.org/t/components-list-not-showing-all-components-after-deleting-one/371784
**Category:** Bug
**Created:** [2025年六月26日 09:02 UTC](https://meta.discourse.org/t/components-list-not-showing-all-components-after-deleting-one/371784 "2025-06-26T09:02:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [2025年六月26日 09:02 UTC](https://meta.discourse.org/t/components-list-not-showing-all-components-after-deleting-one/371784/1 "2025-06-26T09:02:16Z")

</div>

每次删除组件时都会发生这种情况。页面重新加载后，所有组件会再次显示。

可能只有安装了超过 x 个组件时才会发生这种情况？列表现在似乎具有延迟加载功能。

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2025年六月26日 14:57 UTC](https://meta.discourse.org/t/components-list-not-showing-all-components-after-deleting-one/371784/2 "2025-06-26T14:57:53Z")

</div>

没错，我也是。确实是这样，当组件数量超过 X 个时。

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2025年六月26日 17:18 UTC](https://meta.discourse.org/t/components-list-not-showing-all-components-after-deleting-one/371784/3 "2025-06-26T17:18:36Z")

</div>

是的，我也注意到了这个问题，正在尝试在此处进行修复：

> <https://github.com/discourse/discourse/pull/33364>
>
> Reported here: https://meta.discourse.org/t/components-list-not-showing-all-comp…onents-after-deleting-one/371784
> 
> Deleting a component reloads the component list, but doesn't maintain pagination if the admin loaded multiple pages of components... so you can end up with only a partial list after delete. 
> 
> This instead removes the component from the array without a reload, so it maintains the current list state.
