ISR in Angular

Enea Jahollari recently contributed a guest post to the official Angular blog, diving into ISR — Incremental Static Regeneration.

Think of it as a caching mechanism layered on top of Server-Side Rendering. When a user lands on a page, the server renders the content fresh, and the user receives a fully-rendered static response with minimal delay.

The key difference with ISR? That rendered response gets cached and served to subsequent visitors.

For invalidating the cache, you can specify rules such as an expiry time. More advanced scenarios include on-demand invalidation, pluggable caching providers, or route-specific cache granularity.

This ISR implementation comes from rx-angular, a collection of tools from Push-Based aimed at boosting Angular performance.

RxAngular | RxAngular

Performance & DX

favicon rx-angular.io

Infinite Scrolling - Case Study

Infinite scrolling is usually a built-in feature in UI libraries. But building it from scratch offers a solid learning opportunity. Ezz Abuzaid took that path in a recent write-up, showcasing a prototype that leans heavily on RxJS. He implemented virtual scrolling as both a pipe and a directive.

Minor Releases

Beyond that, we saw fresh minor releases roll out, with a particular focus on testing tools.

Jest 29.7

Jest's latest version is 29.7. A notable addition is the ability to bootstrap a setup straight through npm init.

https://github.com/jestjs/jest/releases

Cypress 13.2

Cypress doesn't offer parallelisation on its own. That's where Nx comes in — you can divide your E2E tests across different libraries, and Nx will execute them concurrently.

With the 13.2 release, the Component Test Runner was tweaked to let Nx parallelise component tests as well.

https://github.com/cypress-io/cypress/releases

Playwright 1.38

Playwright, the other significant player in E2E testing, also got a refresh. Version 1.38 brings more polish to the UI mode, including a redesigned network panel and the ability to zoom into the timeline.

https://github.com/microsoft/playwright/releases

Ionic 7.4

Ionic, the cross-platform application framework, also shipped version 7.4. It comes with some convenient fixes and features, though nothing revolutionary this time around.

https://github.com/ionic-team/ionic-framework/releases