DEV Community

Discussion on: Announcing NgRx 19: NgRx Signals Features, Action Signals, and more!

Collapse
 
davidshortman profile image
David

rxMethod is really awesome, and with Angular's native rxResource and linkedSignal you can compose common actions simpler than ever.

Here's an example for others to see a "production" use case on a page with a table for a student class enrollment admin portal: github.com/MountainSOLSchool/platf...

The code demonstrates several key features working together:

  • rxResource manages loading and refreshing the semester dropdown options and table data
  • linkedSignal creates a derived semester selection that updates when the semester list changes
  • rxMethod elegantly handles side effects (copying emails and downloading forms) by:
    • Running async operations in response to signal changes
    • Updating a signal tracking the request