You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 6, 2019. It is now read-only.
I came across rxr from your comment here, and I realised it's almost identical to the approach I was kicking around internally on a new project. Good work!
The one part I haven't figured out yet is server side rendering. Getting RxJS itself to play nicely with SSR is no problem; figuring out a way to deal with per-request context, merging component streams into a single stream and 'awaiting' a ready value before calling ReactDOM.renderToString() is a much deeper rabbit hole to get lost down.
I posted a comment here describing it, and also a similar one in the Recycle lib which provides another nice HOC around handling rx streams.
Would love to hear your thoughts on how to best tackle SSR.
I've been using Promises to date with redial, and that's really easy because resolving to a single value is guaranteed at some stage. Something like that for RxJS that works universally would be awesome.
I came across rxr from your comment here, and I realised it's almost identical to the approach I was kicking around internally on a new project. Good work!
The one part I haven't figured out yet is server side rendering. Getting RxJS itself to play nicely with SSR is no problem; figuring out a way to deal with per-request context, merging component streams into a single stream and 'awaiting' a ready value before calling
ReactDOM.renderToString()is a much deeper rabbit hole to get lost down.I posted a comment here describing it, and also a similar one in the Recycle lib which provides another nice HOC around handling rx streams.
Would love to hear your thoughts on how to best tackle SSR.
I've been using Promises to date with redial, and that's really easy because resolving to a single value is guaranteed at some stage. Something like that for RxJS that works universally would be awesome.