From 9f8713fae416ad34e91f3f8069841ffa98aa3c11 Mon Sep 17 00:00:00 2001 From: sumiren <42498227+sumiren@users.noreply.github.com> Date: Tue, 9 Aug 2022 00:20:12 +0900 Subject: [PATCH] docs: update When section of getStaticProps page (#39393) getStaticProps will be called in conjection with fallback. it's written in following page, but not in concerned page. https://nextjs.org/docs/basic-features/data-fetching/get-static-paths --- docs/basic-features/data-fetching/get-static-props.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/basic-features/data-fetching/get-static-props.md b/docs/basic-features/data-fetching/get-static-props.md index 261ffe103998..0bd66d8a7961 100644 --- a/docs/basic-features/data-fetching/get-static-props.md +++ b/docs/basic-features/data-fetching/get-static-props.md @@ -30,6 +30,8 @@ You should use `getStaticProps` if: `getStaticProps` always runs on the server and never on the client. You can validate code written inside `getStaticProps` is removed from the client-side bundle [with this tool](https://next-code-elimination.vercel.app/). - `getStaticProps` always runs during `next build` +- `getStaticProps` runs in the background when using [`fallback: true`](/docs/api-reference/data-fetching/get-static-paths#fallback-true) +- `getStaticProps` is called before initial render when using [`fallback: blocking`](/docs/api-reference/data-fetching/get-static-paths#fallback-blocking) - `getStaticProps` runs in the background when using `revalidate` - `getStaticProps` runs on-demand in the background when using [`revalidate()`](/docs/basic-features/data-fetching/incremental-static-regeneration.md#on-demand-revalidation)