Skip to content
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

When the recalculated values of the dependent computed properties have not changed, the calculated properties of all dependent are recalculated. #8751

Closed
txs1992 opened this issue Sep 4, 2018 · 1 comment

Comments

@txs1992
Copy link

txs1992 commented Sep 4, 2018

What problem does this feature solve?

Sorry, the following content is not translated accurately, so use Chinese.

Example

当程序中出现链式计算属性依赖时,我们可能希望的是仅当被依赖的计算属性变更时,它所依赖的计算属性才会重新去计算。而不是因为被依赖的计算属性重新计算链了,所以所有依赖它的计算属性都要重新计算。这样在链式的依赖的计算属性中,可以节省很多计算工作。

What does the proposed API look like?

仅当被依赖的计算属性变更时,它所依赖的计算属性才会重新去计算。

@txs1992 txs1992 changed the title When the recalculated values of the dependent computed properties have not changed, the calculated properties of all dependent trees are recalculated. When the recalculated values of the dependent computed properties have not changed, the calculated properties of all dependent are recalculated. Sep 4, 2018
@Justineo
Copy link
Member

Justineo commented Sep 4, 2018

Duplicate of #7767


And F.Y.I. 2.5.17-beta.0 had shipped this enhancement (#7824) but it caused regression (#8446) so was not included in 2.5.17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants