DEV Community

loading...

Discussion on: Where to initiate data load in NgRx

Collapse
shevadavid profile image
David

I like an idea to dispatch action in selector, because this is the place where you actually know, do you have the data you need. However when I implemented a feature this way, I faced with strange behavior of NGRX\RxJS because in some point of time I receive initial state in the selector instead of updated. Maybe you know how to address this problem?