RxJS isn't complicated enough... let's add State Machines
We take a look at how we can combine state machines using XState with a typical reactive state management flow using RxJS, Angular, and Signals.
Source code: https://github.com/joshuamorony/state-machine-error/blob/main/src/app/shared/data-access/posts.service.ts
Reactive error handling with signals: https://www.youtube.com/watch?v=54q7P9PB0WU
Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076
Learn Angular with Ionic: https://ionicstart.com
#xstate #angular #rxjs
0:00 Introduction
0:33 What is a state machine?
1:34 The scenario
1:56 Creating the types
3:04 Creating the state machine
5:48 Using the state machine with RxJS
6:33 Is it worth it?
- More tutorials: https://eliteionic.com
- Follow me on Twitter: https://twitter.com/joshuamorony