Skip to content

Commit

Permalink
Merge branch 'canary' into fix/no-static-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Mar 12, 2021
2 parents 23735e8 + 2af5a0e commit ff2c946
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/basic-features/data-fetching.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ The `context` parameter is an object containing the following keys:
}

return {
props: {}, // will be passed to the page component as props
props: { data }, // will be passed to the page component as props
}
}
```
Expand All @@ -111,7 +111,7 @@ The `context` parameter is an object containing the following keys:
}

return {
props: {}, // will be passed to the page component as props
props: { data }, // will be passed to the page component as props
}
}
```
Expand Down Expand Up @@ -156,7 +156,7 @@ export async function getStaticProps() {
const res = await fetch('https://.../posts')
const posts = await res.json()

// By returning { props: posts }, the Blog component
// By returning { props: { posts } }, the Blog component
// will receive `posts` as a prop at build time
return {
props: {
Expand Down Expand Up @@ -325,7 +325,7 @@ export async function getStaticProps() {
content: fileContents,
}
})
// By returning { props: posts }, the Blog component
// By returning { props: { posts } }, the Blog component
// will receive `posts` as a prop at build time
return {
props: {
Expand Down

0 comments on commit ff2c946

Please sign in to comment.