8000 1.12.13版本中,对于StatelessWidget的子节点为StatefuleWidget产生的问题 · Issue #82 · XianyuTech/aspectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

1.12.13版本中,对于StatelessWidget的子节点为StatefuleWidget产生的问题 #82

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

Closed
kelciej opened this issue Dec 14, 2020 · 1 comment

Comments

@kelciej
Copy link
kelciej commented Dec 14, 2020

您好。
目前遇到了接入aspectd后,StatefulWidget每次都创建新的情况,这个和未接入aspectd时的情况不一致。
详情如下:
在未接入aspectd的时候,最外层是Statelesswidget,它的子元素是StatefuleWidget。
StatelessWidget 会随着 本页 setState 动作而更新,但是子元素 StatefuleWidget的_不会创建新的state_,但每次会重新build。

接入aspectd后,Stateless 会随着 本页 setState 动作而更新,但是子元素 StatefuleWidget的会创建新的state,每次会重新build。

这个问题希望能解答一下,谢谢!
@kangwang1988

@kangwang1988
Copy link
Contributor

你可以dump transform出来的dill,看看被manipulate之后的ast长什么样,看看

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
0