0
0
JRJose Romero
When the code executes, it creates an Effect object and initializes it with an empty observable. Then, it calls the ofType() method on the actions observable, telling it to grab input from the action observable. Lastly, it calls the operator()() method on the EMPTY observable, telling it to emit completion events.
Library: angular
Shortcut: angular.ngrx.effect.create
effectName$ = createEffect(() => {
return this.actions$.pipe(
ofType(action),
/** An EMPTY observable only emits completion. Replace with your own observable stream */
operator(() => EMPTY));
});