-
Notifications
You must be signed in to change notification settings - Fork 150
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
Possibly a BUG: Child computed property does not change reactively when bound to parent's computed property. #169
Comments
I can explain a little why this happens Because During digesting, It invokes But Nothing changes, right? |
I've modified your codepan example to make it work |
Hi, I see what you did to the example and that is definitely a solution for only using The problem is that why the setter of the child computed property is not called while the parent computed setter can be called? I made some modification to the example and you can see when the Please take a look: Modified Example |
Yay, you are right, maybe it can be improved But I don't recommend using computed property in that way It's unnecessary to use computed property in your case |
😂 Sure it is definitely not necessary in your example to use computed properties lol... I made that just for simple demonstration. My case is actually using a computed property to represent multiple nested data members with different conditions and it is pretty complicated without computed properties. This example can present a closer example to what I am actually facing. |
Version:
0.5.1
Description:
When a parent computed property is bound to a child computed property, the child computed property setter is not called after the parent computed property is altered.
Reproduction:
Codepen Example
Please take a look and see if it is my problem or it is just a bug. Thanks very much!
@leeluolee
@rainfore
The text was updated successfully, but these errors were encountered: