Skip to content

Conversation

@linuxonrails
Copy link
Collaborator

@linuxonrails linuxonrails changed the title Create a sample _17 Observables_ with redux-observables & ReactiveX.js Create a sample 17 Observables with redux-observables & ReactiveX.js Dec 15, 2016

export const ColorDisplayer = (props: Props) => {
// `rgb(${props.color.red},${props.color.green}, ${props.color.blue}) })`
// "rgb(" + props.color.red + ", 40, 80)"
Copy link
Member

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?

Copy link
Collaborator Author

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)
Copy link
Member

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}) => {
Copy link
Member

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's better.

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 this pull request may close these issues.

2 participants