effectName$ = createEffect(() => {
        return this.actions$.pipe(
            ofType(action),
            /** An EMPTY observable only emits completion. Replace with your own observable stream */
            operator(() => EMPTY));
      });

      Typescript language logoNgRx Create Effect

      Angular snippets for TypeScript

      This code creates an effect that returns an observable stream that will emit completion whenever the actions stream is finished.

      Shortcut: a_ngrx_create_effect

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.