piotrwitek / react-redux-typescript-jspm-starter

Futuristic, bundle-free, development environment for building Component-Driven SPA with React, Redux and TypeScript - powered by JSPM (SystemJS & Rollup with tree-shaking)
https://piotrwitek.github.io/react-redux-typescript-jspm-starter/
MIT License
231 stars 43 forks source link

Add redux-observables for async flow handling in demo/examples #19

Closed Waterstraal closed 7 years ago

piotrwitek commented 7 years ago

yes it's already on my plate, I'm coming back to work in 2 days and continue working on this

piotrwitek commented 7 years ago

possible alternative to redux-saga: https://github.com/clarus/redux-ship

cramhead commented 7 years ago

I've been playing about a bit with redux-observables as an alternative to sagas. I'm currently feeling that it will offer a more expressive and compact mechanism for higher level coordination logic in my app. It's very testable and performant too.

piotrwitek commented 7 years ago

@cramhead Unbelievable, because no more than a week ago in our newest project we are building from ground up, we came to the same conclusion and actually starting to experiment with redux-observables as a more powerful approach to Redux, and we are convinced to make a switch :)

Probably then I'll also make an examples with an unfinished Calculator example using redux-observables and my new cool way of 100% type safety for store, reducer, containers and components using TS 2.1.4 improved inferring mechanism instead explicitly typing interfaces everywhere and the cost that comes with managing them like keeping up to date with changes.

cramhead commented 7 years ago

Super cool. Also, the reduction in boilerplate with the new type inferencing will be awesome.

Waterstraal commented 7 years ago

We've actually opted for angular2 with ngrx/store & ngrx/effects, which is basicly redux with observables, because we found it extremely powerfull! I'm glad to see the React community is starting to see this now too!

piotrwitek commented 7 years ago

redux-observables WIP on this branch: https://github.com/piotrwitek/react-redux-typescript-starter-kit/tree/redux-observables