#35126·反应

错误: 开发模式会破坏应用程序: 在 props 对象中调用 getter 会产生副作用

作者: yGuy创建于 2025年11月13日更新于 2026年9月15日
标签Type: Discussion

In dev mode, there is a feature that inspects the properties of all props passed to a component, recursively. This happens using a simple `for (key in obj)` loop and thus traverses all enumerable properties, recursively, including getters. This feature cannot be disabled without disabling dev mode and it will only trigger in slightly advanced setups and thus is hard to debug.