component is duplicated after Hydration #56325
Labels
area: core
Issues related to the framework runtime
core: hydration
needs reproduction
This issue needs a reproduction in order for the team to investigate further
Milestone
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
No
Description
When using ssr with hydration my main component is not replaced immediately. It takes it about 4 seconds to go away. This is how it looks:
![image](https://private-user-images.githubusercontent.com/4542641/337725258-6f5d5c31-5f70-4c96-9463-1d2c5480d92b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAwNDY4NzIsIm5iZiI6MTcyMDA0NjU3MiwicGF0aCI6Ii80NTQyNjQxLzMzNzcyNTI1OC02ZjVkNWMzMS01ZjcwLTRjOTYtOTQ2My0xZDJjNTQ4MGQ5MmIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDNUMjI0MjUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODIyZDdiYzYyM2EyYWNjZWFjMzQ5MTg3ODRhOTIyYWM5Y2JiZmZhYjRlZjU0NjQ1MDlmZDE1ZDdhNzkzY2M4MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.pDOLpx-opNzGHmWkwSdkzXf-_91ftWu1d2VUORBhTeA)
![image](https://private-user-images.githubusercontent.com/4542641/337725689-0698acee-d8d6-4a57-9317-12e701e194d5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAwNDY4NzIsIm5iZiI6MTcyMDA0NjU3MiwicGF0aCI6Ii80NTQyNjQxLzMzNzcyNTY4OS0wNjk4YWNlZS1kOGQ2LTRhNTctOTMxNy0xMmU3MDFlMTk0ZDUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDNUMjI0MjUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzdhMjJhMzMwOTA1N2M0YjE1YTZjZTM5N2I1ZGIxODViMTlhNmNlOGE0NDRjNjE4OGMwODMyOTdlOTlmMzU1MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.YR5Tt2B3XI98oXFeydpoVw10WOQThUgMNq6caPXVHT4)
The top section is the one that is generated by the server and to one at the bottom is generated by the SPA. After few seconds the top component is removed and it looks like so:
when turning off hydration:
![image](https://private-user-images.githubusercontent.com/4542641/337725836-0805f14b-6c84-4c20-98c0-0922afcf4160.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAwNDY4NzIsIm5iZiI6MTcyMDA0NjU3MiwicGF0aCI6Ii80NTQyNjQxLzMzNzcyNTgzNi0wODA1ZjE0Yi02Yzg0LTRjMjAtOThjMC0wOTIyYWZjZjQxNjAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDNUMjI0MjUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzkzMWQ1M2ExYTkwM2MzMGFmYmUwZDA2ZjY1ZDY1YThkMmU5YzYwOGJkMDA1OGY5YjgzODM0YWIxNGQ0ZDE4NSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.KPtUcgSlNHdmXUkFUQp5-LmSeYwsmC5byZrEpoyeeFs)
There is no duplication of components.
Please provide a link to a minimal reproduction of the bug
can share the application as it privte
Please provide the exception or error you saw
The main component is the one that is duplicated. Here it is code:
Anything else?
No response
The text was updated successfully, but these errors were encountered: