From b578dfef8a4f829cbf787b65a2245ab4eff07658 Mon Sep 17 00:00:00 2001 From: Kyle Holmberg Date: Fri, 28 May 2021 13:14:24 -0700 Subject: [PATCH 1/2] update docs around revalidation --- docs/basic-features/data-fetching.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basic-features/data-fetching.md b/docs/basic-features/data-fetching.md index 937181cbedbcf..714eb1041f47a 100644 --- a/docs/basic-features/data-fetching.md +++ b/docs/basic-features/data-fetching.md @@ -73,7 +73,7 @@ The `context` parameter is an object containing the following keys: `getStaticProps` should return an object with: - `props` - An **optional** object with the props that will be received by the page component. It should be a [serializable object](https://en.wikipedia.org/wiki/Serialization) -- `revalidate` - An **optional** amount in seconds after which a page re-generation can occur (defaults to: `false` or no revalidating). More on [Incremental Static Regeneration](#incremental-static-regeneration) +- `revalidate` - An **optional** amount in seconds after which a page re-generation can occur. Defaults to `false`. When `revalidate` is `false` it means that there is no revalidation, so the page will cached as fetched until your next deployment. More on [Incremental Static Regeneration](#incremental-static-regeneration) - `notFound` - An **optional** boolean value to allow the page to return a 404 status and page. Below is an example of how it works: ```js From 812d5fbf0c63e36254df7d2c069902e767415459 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Tue, 20 Jul 2021 14:32:30 -0500 Subject: [PATCH 2/2] Apply suggestions from code review --- docs/basic-features/data-fetching.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basic-features/data-fetching.md b/docs/basic-features/data-fetching.md index 714eb1041f47a..6d443531700a9 100644 --- a/docs/basic-features/data-fetching.md +++ b/docs/basic-features/data-fetching.md @@ -73,7 +73,7 @@ The `context` parameter is an object containing the following keys: `getStaticProps` should return an object with: - `props` - An **optional** object with the props that will be received by the page component. It should be a [serializable object](https://en.wikipedia.org/wiki/Serialization) -- `revalidate` - An **optional** amount in seconds after which a page re-generation can occur. Defaults to `false`. When `revalidate` is `false` it means that there is no revalidation, so the page will cached as fetched until your next deployment. More on [Incremental Static Regeneration](#incremental-static-regeneration) +- `revalidate` - An **optional** amount in seconds after which a page re-generation can occur. Defaults to `false`. When `revalidate` is `false` it means that there is no revalidation, so the page will be cached as built until your next build. More on [Incremental Static Regeneration](#incremental-static-regeneration) - `notFound` - An **optional** boolean value to allow the page to return a 404 status and page. Below is an example of how it works: ```js