Show warning when withEnabledBlockingInitialNavigation
Is used with provideClientHydration
Β #59624
Open
Description
Which @angular/* package(s) are relevant/related to the feature request?
router, platform-browser
Description
The withEnabledBlockingInitialNavigation
option was designed specifically for use cases involving deferred hydration to prevent UI flickers during initial navigation. However, when used with provideClientHydration
, which supports standard hydration, the issue of flickering does not arise. To avoid confusion and misuse, a warning should be displayed in the console when these two configurations are used together, as they are not intended to work in tandem.
Proposed solution
Issue warning when these 2 methods are used togather.