Hacker News new | ask | show | jobs
by yiransheng 3008 days ago
Interesting mention of create-subscription[1], first time I have heard of such a library/api. Seems it's part of official react repo. Looks like a great piece of utility for interfacing rxjs/xstream etc. Observables. I guess this may replace recompose[2]'s Observable utilities as it's officially endorsed by react team.

Current react ecosystem broadly speakings splits on state management solutions in two styles: 1. Single Observable-like source of truth (redux store) 2. Multi-Observables (relay, appolo, mobx)

It will be interesting to see if `create-subscription` catches on, and whether library authors will start exporting subscriptions as public apis.

[1] https://www.npmjs.com/package/create-subscription

[2] https://github.com/acdlite/recompose/blob/master/docs/API.md...

1 comments

That's because it's a new addon library from the React team, intended to help handle several tricky bits of timing and behavior in how updates get passed to React.