Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How to communicate with Redux/MobX/Other State management tools elegantly. #610

Closed
wewoor opened this issue Jan 7, 2022 · 5 comments
Closed
Labels
good first issue Good for newcomers

Comments

@wewoor
Copy link
Collaborator

wewoor commented Jan 7, 2022

No description provided.

@hepezu
Copy link

hepezu commented Jan 15, 2022

In my case, I create a service to collect the events and states, and notify the redux. I like the current state management, although it is a little bit strange to some react developers. It is flexible enough, more detailed documentation on it would be nice.

@wewoor wewoor added the good first issue Good for newcomers label Jan 16, 2022
@wewoor
Copy link
Collaborator Author

wewoor commented Jan 17, 2022

In my case, I create a service to collect the events and states, and notify the redux. I like the current state management, although it is a little bit strange to some react developers. It is flexible enough, more detailed documentation on it would be nice.

The events and states are in one service, is the service too complex? We separate the States and Events via the Controller layer.

@hepezu
Copy link

hepezu commented Jan 20, 2022

I mainly use your mode to manage states(service and controller with global DI) in project developed with molecule, and I like that.

I have some modules with old codes which use redux, so I make a service to do the communication between existing redux module and services in molecule(not all service states, only what I need). I love the current molecule's architecture, by using extensions and molecule services, it is facile to make extension modules with different tech stacks.

@wewoor
Copy link
Collaborator Author

wewoor commented Jan 21, 2022

I mainly use your mode to manage states(service and controller with global DI) in project developed with molecule, and I like that.

I have some modules with old codes which use redux, so I make a service to do the communication between existing redux module and services in molecule(not all service states, only what I need). I love the current molecule's architecture, by using extensions and molecule services, it is facile to make extension modules with different tech stacks.

Your feedback is very important to us. we are planning to extract this architecture into a separate package, and it can be used for other React projects. Maybe we can keep in touch, lol~

#622

@hepezu
Copy link

hepezu commented Jan 29, 2022

Happy Spring Festival.

Sure, keep in touch, I would like to make a demo in the future.

@DTStack DTStack locked and limited conversation to collaborators Mar 2, 2022
@wewoor wewoor converted this issue into discussion #676 Mar 2, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants