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

how organize global state store ? #36

Closed
zlv-thisF opened this issue Mar 12, 2019 · 2 comments
Closed

how organize global state store ? #36

zlv-thisF opened this issue Mar 12, 2019 · 2 comments
Labels
question Further information is requested

Comments

@zlv-thisF
Copy link

i am new to rxjs, the rxjs-hooks library is quite inspiring to me !!

since hooks have separated the hard nut to crack (state in class based component ) from component and make it easy to combine and reuse components, i am wondering that is there a way to handle global state by rxjs and how ?

it seems that "state" or "value" is calculated by useObservable or useEventCallback and pass logical code as parameter in myComponent , what if i want reuse it in myOtherComponents . Wrap it in my own useMyHooks maybe a method.

my questtion is that: in react hooks, is there a good way to handle global state with rxjs ? (like store in mobx, reducer in redux) , or do rxjs need it ?

@Brooooooklyn
Copy link
Contributor

@Brooooooklyn Brooooooklyn added the question Further information is requested label Mar 14, 2019
@zlv-thisF
Copy link
Author

@Brooooooklyn , seems Cool, i will try!~
thx for help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants