Skip to content

Commit

Permalink
Update wording of new data fetching methods recommendation (#11221)
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Mar 20, 2020
1 parent 920bf76 commit b9320a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/api-reference/data-fetching/getInitialProps.md
Expand Up @@ -4,9 +4,11 @@ description: Enable Server-Side Rendering in a page and do initial data populati

# getInitialProps

## Recommended: Use `getStaticProps` or `getServerSideProps` instead
## Recommended: `getStaticProps` or `getServerSideProps`

If you're using Next.js 9.3 or newer, you should use `getStaticProps` or `getServerSideProps` instead of `getInitialProps`.
If you're using Next.js 9.3 or newer, we recommend that you use `getStaticProps` or `getServerSideProps` instead of `getInitialProps`.

These new data fetching methods allow you to have a granular choice between static generation and server-side rendering.

Learn more on the [Pages documentation](/docs/basic-features/pages.md) and the [Data fetching documentation](/docs/basic-features/data-fetching.md):

Expand Down

0 comments on commit b9320a8

Please sign in to comment.