From 8bf755d699ac7fdd1cf5596fa4ae1899a5386925 Mon Sep 17 00:00:00 2001 From: vadi Date: Mon, 24 Jan 2022 01:09:10 +0800 Subject: [PATCH 1/3] Updated docs for getServerSideProps and getStaticProps return values based on the declared type (fix #33576) --- docs/api-reference/data-fetching/get-server-side-props.md | 2 +- docs/api-reference/data-fetching/get-static-props.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api-reference/data-fetching/get-server-side-props.md b/docs/api-reference/data-fetching/get-server-side-props.md index 10b469ae28217..af38bfb9ef2ec 100644 --- a/docs/api-reference/data-fetching/get-server-side-props.md +++ b/docs/api-reference/data-fetching/get-server-side-props.md @@ -43,7 +43,7 @@ The `context` parameter is an object containing the following keys: ## getServerSideProps return values -The `getServerSideProps` function should return an object with the following **optional** properties: +The `getServerSideProps` function should return an object with **any one of the following** properties: ### `props` diff --git a/docs/api-reference/data-fetching/get-static-props.md b/docs/api-reference/data-fetching/get-static-props.md index 23c0e70900981..e68786c43f8d0 100644 --- a/docs/api-reference/data-fetching/get-static-props.md +++ b/docs/api-reference/data-fetching/get-static-props.md @@ -41,7 +41,7 @@ The `context` parameter is an object containing the following keys: ## getStaticProps return values -The `getStaticProps` function should return an object with the following **optional** properties: +The `getStaticProps` function should return object with **any one of the following** properties: ### `props` From b6db0e33385505686d34120c6af46d5d251f6a57 Mon Sep 17 00:00:00 2001 From: Choz Date: Mon, 24 Jan 2022 12:49:11 +0800 Subject: [PATCH 2/3] Update docs/api-reference/data-fetching/get-static-props.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Balázs Orbán --- docs/api-reference/data-fetching/get-static-props.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-reference/data-fetching/get-static-props.md b/docs/api-reference/data-fetching/get-static-props.md index e68786c43f8d0..57a240c9c770e 100644 --- a/docs/api-reference/data-fetching/get-static-props.md +++ b/docs/api-reference/data-fetching/get-static-props.md @@ -41,7 +41,7 @@ The `context` parameter is an object containing the following keys: ## getStaticProps return values -The `getStaticProps` function should return object with **any one of the following** properties: +The `getStaticProps` function should return an object with **any one of the following** properties: ### `props` From 80fa55516a457d54024d5cd5ff16767297925b22 Mon Sep 17 00:00:00 2001 From: vadi Date: Tue, 25 Jan 2022 23:10:40 +0800 Subject: [PATCH 3/3] Updated docs for getStaticProps return values (fix #33576) --- docs/api-reference/data-fetching/get-static-props.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-reference/data-fetching/get-static-props.md b/docs/api-reference/data-fetching/get-static-props.md index 57a240c9c770e..d83263f429b88 100644 --- a/docs/api-reference/data-fetching/get-static-props.md +++ b/docs/api-reference/data-fetching/get-static-props.md @@ -41,7 +41,7 @@ The `context` parameter is an object containing the following keys: ## getStaticProps return values -The `getStaticProps` function should return an object with **any one of the following** properties: +The `getStaticProps` function should return an object containing either `props`, `redirect`, or `notFound` followed by an **optional** `revalidate` property. ### `props`