From 7d82e942e9ee352eb9f98a253c58ce890ee537ec Mon Sep 17 00:00:00 2001 From: Kenneth Lum Date: Thu, 11 Mar 2021 23:55:02 -0800 Subject: [PATCH] When there is data already, the props is props: { data } 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 } } ```