# Glimmer 组件更改检测未生效 - @tracked 数组中属性突变

**URL:** <https://meta.discourse.org/t/glimmer-component-change-detection-not-working-mutating-properties-in-tracked-array/378246>\
**Category:** Development\
**Created:** [2025年八月12日 05:45 UTC](https://meta.discourse.org/t/glimmer-component-change-detection-not-working-mutating-properties-in-tracked-array/378246 "2025-08-12T05:45:09Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Steve\_John](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steve_john/32/435022_2.png) [@Steve\_John](https://meta.discourse.org/u/Steve_John)\
**Post date:** [2025年八月13日 17:26 UTC](https://meta.discourse.org/t/glimmer-component-change-detection-not-working-mutating-properties-in-tracked-array/378246/5 "2025-08-13T17:26:41Z")

</div>

感谢您的意见。我还有其他后续问题：

使用像 immer 这样的库是否可行？  
如果可行，我应该如何在 discourse 中包含 immer？  
我曾看到过“将其从 node\_modules 复制到 assets 中”的说法，但我更希望能够通过 npm 来实现，或者在 header 标签中提供一个 cdn 链接。

---

_[View the full topic](https://meta.discourse.org/t/glimmer-component-change-detection-not-working-mutating-properties-in-tracked-array/378246)._
