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

更新state数据之后,通过props传递给下层组件,下层组件不会重新渲染。 #106

Open
BiggerHacker opened this issue Mar 11, 2021 · 1 comment

Comments

@BiggerHacker
Copy link

初始化定义state之后,ajax获取数据,通过props传递给下层表格组件,结果发现不会重新渲染,只会获取上层初始化传递的state。

@daniellin01
Copy link

这个问题 可以用KeepAlive标签的extra属性传值,然后子组件加上@bindLifecycle 就能正确获取到值了。但didUpdat周期里 监控不到值得变化过程,直接就是变化后的结果

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