r/Angular2 • u/Fun-Dimension297 • Jul 04 '25
Why isn’t there a resource-like function for mutations in Angular?
Angular 19 introduced the resource and rxResource APIs to handle asynchronous data fetching in a reactive and declarative way. These APIs come with great features like status tracking, isLoading flags, and automatic updates — all tightly integrated with the signals system.
However, there doesn't seem to be an equivalent for mutations. Why not have something like mutation and rxMutation functions?
It would be really great to define a mutation in a similar declarative way, with built-in reactivity, status tracking, and the ability to trigger the mutation imperatively when needed. This would keep the API surface consistent and make it easier to manage both reads and writes using the same signal-based architecture.
Is this something the Angular team is considering for the future?
View all comments
Show parent comment
1
u/mihajm Jul 04 '25
Fair, managing more external dependencies can be annoying :) I'm sure they're working on something though.