Open charmfocus opened 4 years ago
effect里 Lifecycle.didChangeDependencies? 可以试一下
@charmfocus 请问解决了吗?同样遇到了父页面更新, 无法触发子页面更新
@charmfocus 我这边遇见的问题是,如indexpage里面的child中放入多个page,如homePage,我发现indexPage initstate之后,homePage的initState不会运行,导致homePage的state无法实例化,这是什么原因导致的。感觉和你的类似,请教一下,谢谢。
有父页面
GoodsPage
,PageView.builder来做tab切换的列表页面,包含了GoodsListPage
页面,父页面有更改
state.category.id
的功能,想把categoryId同步到GoodsListPage,GoodsListPage页面是用initState来接收的,似乎页面第一次初始化才能被调用initState,第二次更新状态时,无法调用initState,这种情况GoodsListPage
如何接收新的状态? @zjuwjf