Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Simplify initialState for server-side rendering #451

Closed
@sedubois

Description

@sedubois

It looks like the Redux initialState for SSR should be something like:

  const initialState = {
    ...client.store.getState(),
    [client.reduxRootKey]: client.getInitialState()
  };

Which still looks more complex than it should IMHO? Would it be possible to simplify this API as follows?:

  const initialState = client.getInitialState();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions