Implement Angular SSR with hydration, TransferState caching, and per-route render modes. Use when configuring Angular Universal SSR, client hydration, static prerendering, or preventing double-fetching. (triggers: **/*.server.ts, server.ts, hydration, transferState, afterNextRender, isPlatformServer, RenderMode)
86
82%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
ng add @angular/ssr.provideClientHydration(withEventReplay()) to app.config.ts providers.See hydration examples for app config and hydration setup.
afterNextRender(() => { /* window access */ }) for one-time browser-only code.PLATFORM_ID and use isPlatformBrowser(platformId).withHttpTransferCacheOptions() or manual TransferState to cache server responses for client replay.Export ServerRoute[] in app.routes.server.ts:
@defer (hydrate on viewport).viewport, interaction, idle, timer(ms), immediate, never.withEventReplay() to capture user events before hydration completes.afterNextRender() or PLATFORM_ID check.withHttpTransferCacheOptions() or TransferState.RenderMode.Client for authenticated dashboards.19a1140
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.