Ionic @ In3

Understanding NgRx Effects

April 10

what are ngrx effects?

Effects are sources of actions. They exist as observable strings.

how do effects fit into state management?

Courtesy of Todd Motto (http://www.ultimateangular.com)

when should I use ngrx effects?

Effects are generally used to handle asynchronous calls and the heavy lifting for reducers. You should let your reducers update your state, but if you ever need to perform any calculations or do something asynchronous like talk to a web server, that's when you should use effects.

here's a sample

here's a sample

here's a sample

;

Ionic @ In3 Session 4

By David Plummer

Ionic @ In3 Session 4

  • 771