Skip to content

Commit ca3dd79

Browse files
authored
Update README.md
1 parent c2f20ce commit ca3dd79

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,12 @@ Hydration reconstructs Angular's internal component tree without touching DOM. I
547547
### When you should use Hydration ?
548548
Ans. When you want to have interactive client-side apps rendered on the server. Usefull for Ecommerce, social media & big content websites.
549549

550+
### Does hydration fix SSR errors with window, document, localStorage?
551+
Ans.❌ No. SSR renders on the server where these objects don’t exist.
552+
553+
### What does hydration fix?
554+
Ans. ✔ DOM event listeners, ✔ interaction, ✔ signals, ✔ zone-less reactivation
555+
550556
### Pros & Cons of Hydration
551557
**Pros :**
552558
- Improved Performance and User Experience: Hydration reuses the server-rendered DOM, eliminating the need to destroy and re-render it on the client side. This prevents UI flicker, reduces layout shifts (CLS), and significantly improves metrics like First Input Delay (FID) and Largest Contentful Paint (LCP), leading to a smoother and faster user experience.

0 commit comments

Comments
 (0)