fish-redux
fish-redux copied to clipboard
Page 中设置的 WidgetWrapper wrapper 会对widget wrap 2 次
一次发生在
Widget buildPage(P param) => protectedWrapper(_PageWidget<T, P>( page: this, param: param, ));
另一次发生在 buildComponent 时
return protectedWrapper(
isPureView()
? _PureViewWidget<T>(
store: store,
viewBuilder: enhancer.viewEnhance(protectedView, this, store),
getter: getter,
bus: bus,
)
: ComponentWidget<T>(
component: this,
getter: _asGetter<T>(getter),
store: store,
key: key(getter()),
bus: bus,
enhancer: enhancer,
),
);