refactor(core): calculate hasHttpTransferCacheOptions later (#60605)

Prior to this commit, `hasHttpTransferCacheOptions` was calculated immediately after the `featuresKind` set was declared, which was always defaulted to `false`.

PR Close #60605
This commit is contained in:
arturovt 2025-03-28 13:46:10 +02:00 committed by Jessica Janiuk
parent 958e98e4f7
commit 8931fca34c

View file

@ -225,9 +225,6 @@ export function provideClientHydration(
): EnvironmentProviders {
const providers: Provider[] = [];
const featuresKind = new Set<HydrationFeatureKind>();
const hasHttpTransferCacheOptions = featuresKind.has(
HydrationFeatureKind.HttpTransferCacheOptions,
);
for (const {ɵproviders, ɵkind} of features) {
featuresKind.add(ɵkind);
@ -237,6 +234,10 @@ export function provideClientHydration(
}
}
const hasHttpTransferCacheOptions = featuresKind.has(
HydrationFeatureKind.HttpTransferCacheOptions,
);
if (
typeof ngDevMode !== 'undefined' &&
ngDevMode &&