Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react/connector 组件支持单个View 组件链接多个Service #37

Closed
wewoor opened this issue Feb 22, 2021 · 0 comments · Fixed by #46
Closed

react/connector 组件支持单个View 组件链接多个Service #37

wewoor opened this issue Feb 22, 2021 · 0 comments · Fixed by #46

Comments

@wewoor
Copy link
Collaborator

wewoor commented Feb 22, 2021

目前 connect 函数只能链接单个 service/view/controller, 如下:

const PanelView = connect(panelService, Panel, panelController);

考虑支持如下场景:
单个组件链接多个Service state, 用法例如:

const PanelView = connect({
  A: serviceA, 
  B: serviceB
}
, Panel, {controllerA: controllerA, controllerB: controllerB}
);
zhangtengjin pushed a commit that referenced this issue Feb 25, 2021
* feat(connector): support the View connect to multiple Services and Controllers

re #37

* test(connector): test connect method for Service and Controller binding

* refactor(editor): remove the typing params for connect method

* refactor(workbench): remove mainBench, and connect the Workbench with panelService
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant