fish-redux icon indicating copy to clipboard operation
fish-redux copied to clipboard

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

Open lj827 opened this issue 4 years ago • 1 comments
trafficstars

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

lj827 avatar Jan 25 '21 08:01 lj827

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

colbort avatar May 25 '21 05:05 colbort