DEV Community

Discussion on: Simple yet powerful state management in Angular with RxJS

spierala profile image
Florian Spier Author

I think the reload thing is not really a state, therefore I would not make it part of the state interface. It is more like an action. You can easily create an Action with an RxJS Subject and subscribe on it to trigger the API Call.
You can add that Subject to the service which extends the StateService.

brotherm profile image

Excellent suggestion! Thank you.