The entrance is the ngOnInit hook of shipping-address.component.ts:
After reading the current user ID, pass the id to the callback function, and dispatch a UserActions.LoadUserAddresses in the callback function:
After the userID is successfully retrieved, call take(1).subscribe and pass the userID as a parameter to the callback function. Send the User Actions UserActions.LoadUserAddresses in the callback function:
Received by ngrx-store-devtools.js:
After filter.js (implementation of ofType), map and mergeMap, finally received by the effect class written by the application:
For more original articles by Jerry, please follow the public account "Wang Zixi":