/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/core/src/hydration/cache.ts
16 строк
496 B
Matthieu Riegler
feat(core): add ability to cache resources for SSR
06 май 2026, 19:57
Не верифицирован
06 май 2026, 19:57
5a7c1e6
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {InjectionToken} from '../di'; /** * Token used to the determine if the transfer cache should be used, for example for resources. */ export const CACHE_ACTIVE = new InjectionToken<{isActive: boolean}>( typeof ngDevMode !== 'undefined' && ngDevMode ? 'STATE_CACHE_ACTIVE' : '', );