Created
August 10, 2017 09:14
-
-
Save faceyspacey/9919ec14e8a542fd8d9e2a2c9cdad5c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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