NgRx Create Effect

    0

    0

    lucycodes42

    Angular snippets for TypeScript

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

    Library: angular

    Shortcut: a_ngrx_create_effect

    effectName$ = createEffect(() => {
      return this.actions$.pipe(
          ofType(action),
          /** An EMPTY observable only emits completion. Replace with your own observable stream */
          operator(() => EMPTY));
    });
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.