DEV Community


Discussion on: Where to initiate data load in NgRx

atrifyllis profile image
alx tr • Edited

What about dispatching action in APP_INITIALIZER? Or a Resolver?

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.

jonrimmer profile image
Jon Rimmer Author

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.