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

Page 中设置的 WidgetWrapper wrapper 会对widget wrap 2 次

Open yunnywu opened this issue 4 years ago • 0 comments

image

一次发生在

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,
        ),
);

yunnywu avatar Jun 03 '20 09:06 yunnywu