Skip to content

SSR and react-rxjs #313

@Jesus-Gonzalez

Description

@Jesus-Gonzalez

Hello,

For now, the applications I've been working on with react-rxjs are SPA that are client side rendering only - no SSR is implemented.
Given the new trend on frontend application development with javascript - SSR is becoming the norm for every project.
I've also started working on a side-project that's going to implement SSR - although it's initially rendering client side only.

Are there any guide or best practices in order to implement SSR and using react-rxjs?

I'm thinking about possible issues arising - for example:

  • double requests to the BE API/server (when server renders and firstValueFrom an observable - and another when rendering client side)
  • maintaining and hydrating state on the state observables when first rendering
  • React rendering twice - when it first renders the generated SSR document - when the components mount.

Jesús

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions