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
Description
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
Labels
No labels