Skip to content

Show warning when withEnabledBlockingInitialNavigation Is used with provideClientHydrationΒ #59624

Open
@alan-agius4

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.

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtimecore: hydrationhelp wantedAn issue that is suitable for a community contributor (based on its complexity/scope).

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions