rsnext/packages/next/types
Zack Tanner 85b9ed5eb8
provide revalidateReason to getStaticProps (#64258)
Provides a `revalidateReason` argument to `getStaticProps` ("stale" |
"on-demand" | "build").

- Build indicates it was run at build time
- On-demand indicates it was run as a side effect of [on-demand
revalidation](https://nextjs.org/docs/pages/building-your-application/data-fetching/incremental-static-regeneration#on-demand-revalidation)
- Stale indicates the resource was considered stale (either due to being
in dev mode, or an expired revalidate period)

This will allow changing behavior based on the context in which it's
called.

Closes NEXT-1900
2024-04-09 09:53:08 -07:00
..
compiled.d.ts Component Module Types (#56454) 2023-10-05 15:28:45 +00:00
global.d.ts feat(error-overlay): notify about missing html/body in root layout (#62815) 2024-03-06 10:59:53 +00:00
index.d.ts provide revalidateReason to getStaticProps (#64258) 2024-04-09 09:53:08 -07:00
misc.d.ts refactor(cli): refactor cli to commander (#61877) 2024-03-01 23:12:47 +00:00
react-dom.d.ts Associate server error digest with browser logged one (#61592) 2024-02-06 13:39:12 +01:00
react.d.ts Partial Prerendering (#57287) 2023-10-24 01:13:05 +00:00
webpack.d.ts New CSS chunking algorithm (#63157) 2024-03-18 10:29:13 +01:00