Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' into feat/refreshcache
Browse files Browse the repository at this point in the history
  • Loading branch information
samouss authored Nov 21, 2017
2 parents 6805d25 + b8f205f commit 9b43b48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docgen/src/guide/Server-side_rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class App extends Component {
appId="appId"
apiKey="apiKey"
indexName="indexName"
searchState={this.props.searchState || {}}
searchState={this.props.searchState}
resultsState={this.props.resultsState || {}}
>
<SearchBox />
Expand Down Expand Up @@ -83,7 +83,7 @@ import { renderToString } from 'react-dom/server';

const server = createServer((req, res) => {
const searchState = {searchState: {query: 'chair'}};
const resultsState = await findResultsState(App);
const resultsState = await findResultsState(App, {searchState});
const appInitialState = {searchState, resultsState}
const appAsString = renderToString(<App {...appInitialState} />);
res.send(
Expand Down

0 comments on commit 9b43b48

Please sign in to comment.