alibaba / fish-redux

An assembled flutter application framework.

Home Page:https://github.com/alibaba/fish-redux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

单页面里面如何兼容多个adapter?

lj827 opened this issue · comments

commented

页面里面引入compontent,compontent引入adapter,但是.compontent的state里面的数据值需要从外层传入,数据由接口返回,目前使用connerctor的方式传入,但是connector里面的get数据的时候,只有第一次是正确的,之后在获取会init最外层的state数据,即初始化,如何解决?

commented

需要在connector的set中 state.data = substate.data; 子级component中 update(data)