-
Notifications
You must be signed in to change notification settings - Fork 30
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
Create a sample 17 Observables with redux-observables & ReactiveX.js #33
base: master
Are you sure you want to change the base?
Conversation
|
||
export const ColorDisplayer = (props: Props) => { | ||
// `rgb(${props.color.red},${props.color.green}, ${props.color.blue}) })` | ||
// "rgb(" + props.color.red + ", 40, 80)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove this commented code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
action$.ofType(actionsEnums.MEMBER_REQUEST_STARTED).mergeMap(action => | ||
memberAPI.getAllMembers() | ||
// Asynchronously wait 2000ms then continue | ||
.delay(2000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, we could add as well another source via websockets (I think in the link you provided there was once against stock exchange value not sure if public)
@@ -0,0 +1,13 @@ | |||
import * as React from "react"; | |||
|
|||
export const NameEditComponent = (props: {userName: string, onChange: (name: string) => any}) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove all the components that are not related with the sample itself, just to get thing simpler, I would keep only the member list components, actions, reducers, what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's better.
https://redux-observable.js.org/
http://reactivex.io/