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

Passing props dynamic values causes subcomponents to fail to update #9148

Closed
bosens-China opened this Issue Dec 5, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@bosens-China

bosens-China commented Dec 5, 2018

I have a sub-component that is used to update graph data. The data itself needs to be retrieved from ajax, but the value passed to the sub-component by prop is often inconsistent with the data. I can solve this problem by using vuex, but this component is universal. I can't use this method here.

How to Solve the Dynamic Data Acquisition of Subcomponents


我有一个子组件他用来更新图表数据,数据本身需要从ajax来获取,但是通过prop的方式传递给子组件数值,经常是与数据不符合的,我采用了vuex这个问题可以得到解决,但是这个组件是通用的,这里我不能使用这个方法。
怎么可以解决子组件动态获取数据

@vue-issue-bot

This comment has been minimized.

vue-issue-bot commented Dec 5, 2018

Hello, your issue has been closed because it does not conform to our issue requirements. In order to ensure every issue provides the necessary information for us to investigate, we require the use of the Issue Helper when creating new issues. Thank you!


你好,你的 issue 不符合我们所要求的格式,因此已被自动关闭。为了确保每个 issue 都提供必需的相关信息,请务必使用我们的 Issue 向导 来创建新 issue,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment