withEventReplay
function
Enables support for replaying user events (e.g. click
s) that happened on a page
before hydration logic has completed. Once an application is hydrated, all captured
events are replayed and relevant event listeners are executed.
withEventReplay
Enables support for replaying user events (e.g. click
s) that happened on a page
before hydration logic has completed. Once an application is hydrated, all captured
events are replayed and relevant event listeners are executed.
Usage Notes
Basic example of how you can enable event replay in your application when
bootstrapApplication
function is used:
bootstrapApplication(AppComponent, { providers: [provideClientHydration(withEventReplay())]});
Jump to details