Skip to content

Commit

Permalink
When there is data already, the props is props: { data } (#23003)
Browse files Browse the repository at this point in the history
When there is data already, the props is props: { data }
Would be better if the `props: { }` part is `props: { data }`
  • Loading branch information
KennethKinLum authored Mar 12, 2021
1 parent 62967fc commit e7a22af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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

0 comments on commit e7a22af

Please sign in to comment.