DEV Community

Discussion on: Where to initiate data load in NgRx

Collapse
 
atrifyllis profile image
alx tr • Edited

What about dispatching action in APP_INITIALIZER? Or a Resolver?

Collapse
 
maxart2501 profile image
Massimo Artizzu • Edited

I was about to say the same thing. Actually, dispatching on a resolver is one of the most common things I do in an Angular+NgRx project.

Nice recap anyway.

Collapse
 
jonrimmer profile image
Jon Rimmer

Good point about APP_INITIALIZER. I did consider Resolver, but I figured it was similar enough to Guard. I'll update the article with both approaches.