Skip to content

Commit

Permalink
Fix 'SSR with Next.js' code error (#152)
Browse files Browse the repository at this point in the history
the issue: vercel/swr#151
  • Loading branch information
Alicia Lopez committed Nov 27, 2019
1 parent a1d14a9 commit 9aa1d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ With the `initialData` option, you pass an initial value to the hook. It works p
such as `getInitialProps` in [Next.js](https://github.com/zeit/next.js):

```js
App.getInitialProps = async getInitialProps () {
App.getInitialProps = async () => {
const data = await fetcher('/api/data')
return { data }
}
Expand Down

0 comments on commit 9aa1d50

Please sign in to comment.