Comments (2)
@jintoppy I've been looking at https://github.com/cyclejs-community/awesome-cyclejs#example-applications. Did you find any complex example apps? I'm looking for one that uses HTTP
progress
.
from redux-cycles.
I have created a sample react application in redux and redux-thunk. In this application, there will be a list of users. When you click on a user, there will be one async action to get user details which contains the countryId of the user. Using that information, next async action is triggered to get all states.
How can we improve this scenario with redux-cycles?
You can see the code here and demo here.
The part in which I am really interested is given below.
let promise = this.props.getUserDetails(this.props.selectedUser.id);
promise.then(() => {
this.props.getStates(this.props.selectedUser.country);
});
I am not liking this way of coding, because, now there is a dependency and the order is important in this approach.
How this can be re-written using redux-cycles?
Thanks much.
from redux-cycles.
Related Issues (20)
- Package dependencies HOT 2
- Example failing tests HOT 1
- Travis for `example` dir HOT 8
- Slides
- State should be passed with the action HOT 19
- WebpackBin cannot resolve redux-cycles HOT 1
- Hot reloading HOT 4
- Action from an http requetis fired twice HOT 3
- TypeScript Type Declarations HOT 3
- Typescript definitions are not added to the build HOT 6
- relative preset "es2015" not found with create-react-native-app HOT 1
- scheduleMicrotask is not a function HOT 4
- Is this project still active/maintained? HOT 2
- Simplest "PING/PONG" example in README.md has no 'rootReducer'
- What are the $s in variable names? HOT 1
- New test helpers? HOT 2
- Keep getting generic type parameter errors during compile
- Support multiple stream libraries HOT 6
- Linter HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redux-cycles.