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

Commit

Permalink
Use client store. (#222)
Browse files Browse the repository at this point in the history
Just in case one's using an immutable store.
  • Loading branch information
therealcisse authored and James Baxley committed Sep 22, 2016
1 parent d60c393 commit 44aef41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ export function getDataFromTree(app, ctx: any = {}, fetch: boolean = true): Prom

export function renderToStringWithData(component) {
return getDataFromTree(component)
.then(({ store, client }) => {
.then(({ client }) => {
let markup = ReactDOM.renderToString(component);
let initialState = store.getState();
let initialState = client.store.getState();
const key = client.reduxRootKey;
// XXX apollo client requires a lot in the store
// can we make this samller?
Expand Down

0 comments on commit 44aef41

Please sign in to comment.