父组件的props更新会导致子组件的非相应式数据在视图更新。即使这个数据不存在与视图中。 #8370
Answered
by
edison1105
huamanlou112233
asked this question in
Help/Questions
-
父组件向子组件传递一个响应式数据props。这个props是不在视图中的。当props更新的时候,会导致子组件的非相应数据在视图中更新。 |
Beta Was this translation helpful? Give feedback.
Answered by
edison1105
May 22, 2023
Replies: 2 comments
-
看了下源代码,这个props没有在子组件视图中使用,传入的props变更了也会触发更新。 看起是子组件搭 |
Beta Was this translation helpful? Give feedback.
0 replies
-
see #1181 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
huamanlou112233
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see #1181