Creating A Simple setState() Store Using An RxJS BehaviorSubject In Angular 6.1.10 - Part 2

added by JavaScript Kicks
11/1/2018 12:10:32 PM

206 Views

Ben Nadel posts an update to his React-inspired .setState() store using a BehaviorSubject() in Angular 6.1.10. This update allows the .setState() method to accept a callback which will provide the current state of the store that is sometimes needed to calculate the new state.


0 comments