Hey everybody What is …

less than 1 minute read

Hey, everybody! What is a general recommendation on adding NGRX to NX Angular workspace? I’m followind enterprise architecture recommendations and keep apps empty of any logic and components and store all that in app-shell and feature libraries. Should I create single lib and add all NGRX state there? Any ideas?


But you have root store in app?

We always use feature stores (ie: StoreModule.forFeature ) and we never had two stores per lib (fow now). We use such stores in feature libraries most of the time, but we also have more global stores (auth, entities, etc) for data-access libraries.

Hmm, so don’t you have a primary store in app?

Nope. The root store is an empty object. Don’t know if it’s the way to go, but it works well with the Nx library model.