I found cqrs very practical so I can test my ui stateless. You can also do it without using a broker at all. Just plain old objects and callbacks. Observables make the api neat and readable, but that's it.
My testing was simply 'when state contains this, button is visible'
'on click of button event got dispatched "
'on Event, state got modified (or sent http request to server and stored response) '
Sure, it's 3 unit tests, but it really helps.
Bases on your posts I belive you've used angular, so a good companion was 'ngxs'
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I found cqrs very practical so I can test my ui stateless. You can also do it without using a broker at all. Just plain old objects and callbacks. Observables make the api neat and readable, but that's it.
My testing was simply 'when state contains this, button is visible'
'on click of button event got dispatched "
'on Event, state got modified (or sent http request to server and stored response) '
Sure, it's 3 unit tests, but it really helps.
Bases on your posts I belive you've used angular, so a good companion was 'ngxs'