Skip to content

Commit 7c97156

Browse files
arturovtthePunderWoman
authored andcommitted
refactor(core): calculate hasHttpTransferCacheOptions later (angular#60605)
Prior to this commit, `hasHttpTransferCacheOptions` was calculated immediately after the `featuresKind` set was declared, which was always defaulted to `false`. PR Close angular#60605
1 parent ff98ccb commit 7c97156

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/platform-browser/src/hydration.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,6 @@ export function provideClientHydration(
225225
): EnvironmentProviders {
226226
const providers: Provider[] = [];
227227
const featuresKind = new Set<HydrationFeatureKind>();
228-
const hasHttpTransferCacheOptions = featuresKind.has(
229-
HydrationFeatureKind.HttpTransferCacheOptions,
230-
);
231228

232229
for (const {ɵproviders, ɵkind} of features) {
233230
featuresKind.add(ɵkind);
@@ -237,6 +234,10 @@ export function provideClientHydration(
237234
}
238235
}
239236

237+
const hasHttpTransferCacheOptions = featuresKind.has(
238+
HydrationFeatureKind.HttpTransferCacheOptions,
239+
);
240+
240241
if (
241242
typeof ngDevMode !== 'undefined' &&
242243
ngDevMode &&

0 commit comments

Comments
 (0)