From e7a22afe2fa09d994bed96cc3718428ef00e540a Mon Sep 17 00:00:00 2001 From: Kenneth Lum Date: Fri, 12 Mar 2021 00:03:10 -0800 Subject: [PATCH] When there is data already, the props is props: { data } (#23003) When there is data already, the props is props: { data } Would be better if the `props: { }` part is `props: { data }` --- docs/basic-features/data-fetching.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } } ```