Angular · Middle · Question 71 of 75
What is a rxResource (or resource) useful for compared to manual subscribe in effect?
- ✓Correct answer: Loading async data that depends on signals, with built-in
value,isLoading,errorand cancellation of outdated requests - 2Caching data in
localStorage - 3Sending mutations to the server
Explanation
When the params signal changes, the previous load is aborted. Writing this with effect and flags is error-prone.