My application is built in angular with NGRX. I dispatch a getUser() action to retrieve the user ID. I would like to wait for the user ID to return and then fetch all items for that user from the database service.
How can this best be achieved? I was thinking of creating an action & effect called getInitialData that would chain actions. I have two reducers one for the user and one for the items.
Should I create the getInitialData action + service in the users reducer OR should I be creating a new reducer?