-
Notifications
You must be signed in to change notification settings - Fork 29k
Broken hydration after v17 -> v18 migration if i18n blocks are used #56074
Copy link
Copy link
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: coreIssues related to the framework runtimeIssues related to the framework runtimearea: i18nIssues related to localization and internationalizationIssues related to localization and internationalizationcore: hydrationstate: confirmedstate: has PR
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: coreIssues related to the framework runtimeIssues related to the framework runtimearea: i18nIssues related to localization and internationalizationIssues related to localization and internationalizationcore: hydrationstate: confirmedstate: has PR
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
Yes
Description
Imagine this code:
currentBreakpoint signal can be desktop, mobile or tablet. On server it's always set to 'desktop'.
When i add this little line to my component, hydration breaks and 'desktop' div never cleans up on mobile devices after hydration:
Video:
2024-05-24.21.24.22.mov
Please provide a link to a minimal reproduction of the bug
https://github.com/zip-fa/ng18-broken-hydration
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run
ng version)Anything else?
No response