- Notifications
You must be signed in to change notification settings - Fork26.7k
Open
Milestone
Description
Which @angular/* package(s) are relevant/related to the feature request?
core
Description
App Usecase: Build app once, use everywhere based on configuration.
Issue: If I want to build the app to include both server and browser code, a lot of my components will start to include defer and hydrate code on components (in order to support both modes).
But looks like this is not supported because the moment I remove provideClientHydration(), all the defer blocks with hydrate params fail.

Proposed solution
Instead of throwing an error, we can convert it to be a warning and allow the application to be functional.
Alternatives considered
Duplicate components -> which is not great. As it requires a lot of maintenance.