Skip to content
This repository was archived by the owner on Jun 6, 2019. It is now read-only.
This repository was archived by the owner on Jun 6, 2019. It is now read-only.

SSR? #3

@leebenson

Description

@leebenson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions