Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
fix(server): fix initialState creation
Browse files Browse the repository at this point in the history
fix(server): fix initialState creation
  • Loading branch information
Metnew committed Dec 5, 2017
1 parent 1f8131b commit 82c73c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/server/ssr/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export default async (req: express$Request, res: express$Response) => {
// probably, it'd better to define these objs in global scope
const {assets, faviconsAssets} = await getStats()
const {isLoggedIn, language} = req.user
const meState = {auth: {isLoggedIn}}
const initialState: Object = {me: meState}
const authState = {auth: {isLoggedIn}}
const initialState: Object = {...authState}
const i18n = getI18nData(language)
const sheet = new ServerStyleSheet()
const location: string = req.url
Expand Down

0 comments on commit 82c73c4

Please sign in to comment.