Angular · Senior · Question 24 of 75
What problem does withEventReplay() solve?
- ✓Correct answer: Clicks made before hydration finishes are captured and replayed afterwards instead of being lost
- 2It replays HTTP requests made on the server
- 3It records user sessions for analytics
Explanation
Server-rendered pages look interactive before the JS is ready. Event replay captures early events and dispatches them once the handlers are attached.