Skip to content

Instantly share code, notes, and snippets.

@faceyspacey
Created August 10, 2017 09:14
Show Gist options
  • Select an option

  • Save faceyspacey/9919ec14e8a542fd8d9e2a2c9cdad5c8 to your computer and use it in GitHub Desktop.

Select an option

Save faceyspacey/9919ec14e8a542fd8d9e2a2c9cdad5c8 to your computer and use it in GitHub Desktop.
export default async (req, res) => {
const jwToken = req.cookies.jwToken
const preLoadedState = { jwToken }
const history = createHistory({ initialEntries: [req.path] })
const { store, thunk } = configureStore(history, preLoadedState)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment