Nx: Nx without ngrx? Using Apollo.

Created on 25 Jan 2018  路  4Comments  路  Source: nrwl/nx

I have this app I made that uses Apollo.
Since I need to make another app I thought of Nx and installed everything.

But now I discover that Apollo and ngrx are not working well together.
Since I have to use Apollo and I don't really need ngrx (even if I really like effects and the simplicity of store), I'm wondering if there is a way to use Nx without ngrx?

Most helpful comment

If you want to use Nx only for of its implementation of workspace/monorepo, you can create a new project and then remove the following dependencies from package.json:

"@nrwl/nx"
"@ngrx/effects"
"@ngrx/router-store"
"@ngrx/store"
"@ngrx/store-devtools"

We were talking about having an NgRx-less version of Nx, but decided to delay it until later.

All 4 comments

Actually @kamilkisiela just released https://github.com/apollographql/apollo-angular/tree/1.0-ngrx/packages/apollo-angular-cache-ngrx and so far, so good. I can use ngrx with Nx 馃憤
Let's close this one.

@jeremyputeaux starting apollo 2, you can actually use apollo all the way and skip using ngrx. https://github.com/apollographql/apollo-link-state

If you want to use Nx only for of its implementation of workspace/monorepo, you can create a new project and then remove the following dependencies from package.json:

"@nrwl/nx"
"@ngrx/effects"
"@ngrx/router-store"
"@ngrx/store"
"@ngrx/store-devtools"

We were talking about having an NgRx-less version of Nx, but decided to delay it until later.

it would be nice to be able to choose apollo version via cli( yeoman like choice menu) xD

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SWGeekPD picture SWGeekPD  路  3Comments

ZempTime picture ZempTime  路  3Comments

dereklin picture dereklin  路  3Comments

jon301 picture jon301  路  3Comments

MichaelWarneke picture MichaelWarneke  路  3Comments