-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
forceUpdate does not update computed fields #7395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
https://vuejs.org/v2/api/index.html#vm-forceUpdate As I know, forceUpdate is only used to force update UI, not for inter computed data. See also: https://vuejs.org/v2/guide/computed.html#Computed-Caching-vs-Methods |
As @JounQin pointed out: |
@yyx990803 Any reference to how to make a updatable time work in the UI? |
@anlek |
@yyx990803 You are right. It won't recompute the properties. However, I encounter another issue today. for example: If I update attr and the content in console by How come? |
$forceUpdate 会更新子组件么 |
Version
2.5.13
Reproduction link
https://github.com/nagyzsolthun/vue-forceupdate-computed
Steps to reproduce
What is expected?
"last update time" to change
What is actually happening?
"last update time" does not change
The text was updated successfully, but these errors were encountered: