provideClientHydration
function
Sets up providers necessary to enable hydration functionality for the application.
API
Description
Usage Notes
function provideClientHydration( ...features: HydrationFeature<HydrationFeatureKind>[]): EnvironmentProviders;
provideClientHydration
Sets up providers necessary to enable hydration functionality for the application.
By default, the function enables the recommended set of features for the optimal performance for most of the applications. It includes the following features:
- Reconciling DOM hydration. Learn more about it here.
HttpClient
response caching while running on the server and transferring this cache to the client to avoid extra HTTP requests. Learn more about data caching here.
These functions allow you to disable some of the default features or enable new ones:
withNoHttpTransferCache
to disable HTTP transfer cachewithHttpTransferCacheOptions
to configure some HTTP transfer cache optionswithI18nSupport
to enable hydration support for i18n blockswithEventReplay
to enable support for replaying user events
@paramfeatures
HydrationFeature<HydrationFeatureKind>[]
Optional features to configure additional router behaviors.
@returns
EnvironmentProviders
Jump to details