Unverified Commit 52a2022d authored by Steven's avatar Steven Committed by GitHub

Revert "Update data-fetching.md" (#27148)

Reverts vercel/next.js#27018 per comment https://github.com/vercel/next.js/pull/27018#issuecomment-877548891
parent 8c3c2b7e
...@@ -185,11 +185,9 @@ You should use `getStaticProps` if: ...@@ -185,11 +185,9 @@ You should use `getStaticProps` if:
For TypeScript, you can use the `GetStaticProps` type from `next`: For TypeScript, you can use the `GetStaticProps` type from `next`:
```ts ```ts
import { GetStaticProps, GetStaticPropsContext } from 'next' import { GetStaticProps } from 'next'
export const getStaticProps: GetStaticProps = async ( export const getStaticProps: GetStaticProps = async (context) => {
context: GetStaticPropsContext
) => {
// ... // ...
} }
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment