Rules of Thumb pt2
When to create actions?
// Single action that does everything
export class UpdateUsers implements Action {
readonly type = UserActionTypes.UpdateUsers;
constructor(public payload: { users: User[] }) {}
}Sample Action
Related/Nested Data
Maximize Selectors
Service With a Subject
Service with a subject basics
When NOT to use Service with a Subject?
Last updated
Was this helpful?