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

添加一种无视依赖无缓存功能的计算属性 #33

Open
otakustay opened this issue Aug 1, 2016 · 0 comments
Open

添加一种无视依赖无缓存功能的计算属性 #33

otakustay opened this issue Aug 1, 2016 · 0 comments

Comments

@otakustay
Copy link
Member

当计算属性间的依赖复杂化时,很难排查数据的流动,所以有一种作为单纯的函数存在的计算属性是有用的

使用{standalone: true}声明独立计息属性,这种计息属性将和它的dependencies无关(不同步更新),且每次调用get访问时都重新计算(不缓存)

由于没有缓存功能,所以需要注意dump时的处理

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

1 participant