diff --git a/docs/basic-features/data-fetching.md b/docs/basic-features/data-fetching.md index f82f7cac5e110..d21a63083f1c9 100644 --- a/docs/basic-features/data-fetching.md +++ b/docs/basic-features/data-fetching.md @@ -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 } } ``` @@ -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 } } ```