(experimental: ExperimentalConfig)
| 57 | } |
| 58 | |
| 59 | export function createSelectStaleTime(experimental: ExperimentalConfig) { |
| 60 | return (stale: number) => |
| 61 | stale === INFINITE_CACHE && |
| 62 | typeof experimental.staleTimes?.static === 'number' |
| 63 | ? experimental.staleTimes.static |
| 64 | : stale |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Intercepts writes to the `stale` field on the prerender store and yields |
no outgoing calls
no test coverage detected
searching dependent graphs…